{
int i = 1;
const char *name;
+ char *output = NULL;
struct stat tmpstat;
- if (ac > i && av[i][0] == '-') {
+ while (ac > i && av[i][0] == '-') {
switch (av[i++][1]) {
case 'o':
input_mode = ask_new;
exit(1);
}
break;
+ case 'w':
+ output = av[i++];
+ break;
case 'n':
input_mode = set_no;
break;
conf_cnt = 0;
check_conf(&rootmenu);
} while (conf_cnt);
- if (conf_write(NULL)) {
+ if (conf_write(output)) {
fprintf(stderr, _("\n*** Error during writing of the build configuration.\n\n"));
return 1;
}