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':
|
||||
args->is_debug_mode = true;
|
||||
break;
|
||||
case 'h':
|
||||
// fall through
|
||||
case '?':
|
||||
(void)fprintf(stderr, "error: unknown option `-%c'\n", optopt);
|
||||
// fall through
|
||||
case 'h':
|
||||
// fall through
|
||||
default:
|
||||
(void)fprintf(stderr, "usage: %s [-d]\n", BINARY);
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user