mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
commit
c2755cbde9
1 changed files with 7 additions and 8 deletions
15
awesome.c
15
awesome.c
|
@ -507,16 +507,12 @@ main(int argc, char **argv)
|
||||||
run_test = true;
|
run_test = true;
|
||||||
break;
|
break;
|
||||||
case 'c':
|
case 'c':
|
||||||
if(a_strlen(optarg))
|
if (confpath != NULL)
|
||||||
confpath = a_strdup(optarg);
|
fatal("--config may only be specified once");
|
||||||
else
|
confpath = a_strdup(optarg);
|
||||||
fatal("-c option requires a file name");
|
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
if(a_strlen(optarg))
|
string_array_append(&searchpath, a_strdup(optarg));
|
||||||
string_array_append(&searchpath, a_strdup(optarg));
|
|
||||||
else
|
|
||||||
fatal("-s option requires a directory name");
|
|
||||||
break;
|
break;
|
||||||
case 'a':
|
case 'a':
|
||||||
no_argb = true;
|
no_argb = true;
|
||||||
|
@ -524,6 +520,9 @@ main(int argc, char **argv)
|
||||||
case 'r':
|
case 'r':
|
||||||
replace_wm = true;
|
replace_wm = true;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
exit_help(EXIT_FAILURE);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get XDG basedir data */
|
/* Get XDG basedir data */
|
||||||
|
|
Loading…
Reference in a new issue