Skip to content

Commit f7ae76d

Browse files
committed
Make --startup_notification also available as -startup_notification
All other options have a variant with just a single hyphen - be consistent.
1 parent 2d36c6f commit f7ae76d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/dunst.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ int dunst_main(int argc, char *argv[])
183183
settings.print_notifications = true;
184184
}
185185

186-
settings.startup_notification = cmdline_get_bool("--startup_notification",
187-
0, "Display a notification on startup.");
186+
settings.startup_notification = cmdline_get_bool("-startup_notification/--startup_notification",
187+
false, "Display a notification on startup.");
188188

189189
/* Help should always be the last to set up as calls to cmdline_get_* (as a side effect) add entries to the usage list. */
190190
if (cmdline_get_bool("-h/-help/--help", false, "Print help")) {

src/option_parser.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,14 +608,14 @@ void cmdline_usage_append(const char *key, const char *type, const char *descrip
608608

609609
if (!usage_str) {
610610
usage_str =
611-
g_strdup_printf("%-40s - %s\n", key_type, description);
611+
g_strdup_printf("%-50s - %s\n", key_type, description);
612612
g_free(key_type);
613613
return;
614614
}
615615

616616
char *tmp;
617617
tmp =
618-
g_strdup_printf("%s%-40s - %s\n", usage_str, key_type, description);
618+
g_strdup_printf("%s%-50s - %s\n", usage_str, key_type, description);
619619
g_free(key_type);
620620

621621
g_free(usage_str);

0 commit comments

Comments
 (0)