mirror of
https://github.com/mintycube/dwmblocks.git
synced 2024-10-22 14:05:47 +02:00
fix: Fix command-line argument parsing order
This commit is contained in:
parent
df76bd50f2
commit
5f45160b65
@ -15,11 +15,11 @@ int cli_init(cli_arguments *const args, const char *const argv[],
|
|||||||
case 'd':
|
case 'd':
|
||||||
args->is_debug_mode = true;
|
args->is_debug_mode = true;
|
||||||
break;
|
break;
|
||||||
case 'h':
|
|
||||||
// fall through
|
|
||||||
case '?':
|
case '?':
|
||||||
(void)fprintf(stderr, "error: unknown option `-%c'\n", optopt);
|
(void)fprintf(stderr, "error: unknown option `-%c'\n", optopt);
|
||||||
// fall through
|
// fall through
|
||||||
|
case 'h':
|
||||||
|
// fall through
|
||||||
default:
|
default:
|
||||||
(void)fprintf(stderr, "usage: %s [-d]\n", BINARY);
|
(void)fprintf(stderr, "usage: %s [-d]\n", BINARY);
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user