Skip to content

Commit

Permalink
Make --startup_notification also available as -startup_notification
Browse files Browse the repository at this point in the history
All other options have a variant with just a single hyphen - be
consistent.
  • Loading branch information
zappolowski committed Oct 11, 2023
1 parent 2d36c6f commit f7ae76d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/dunst.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ int dunst_main(int argc, char *argv[])
settings.print_notifications = true;
}

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

/* Help should always be the last to set up as calls to cmdline_get_* (as a side effect) add entries to the usage list. */
if (cmdline_get_bool("-h/-help/--help", false, "Print help")) {
Expand Down
4 changes: 2 additions & 2 deletions src/option_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -608,14 +608,14 @@ void cmdline_usage_append(const char *key, const char *type, const char *descrip

if (!usage_str) {
usage_str =
g_strdup_printf("%-40s - %s\n", key_type, description);
g_strdup_printf("%-50s - %s\n", key_type, description);
g_free(key_type);
return;
}

char *tmp;
tmp =
g_strdup_printf("%s%-40s - %s\n", usage_str, key_type, description);
g_strdup_printf("%s%-50s - %s\n", usage_str, key_type, description);
g_free(key_type);

g_free(usage_str);
Expand Down

0 comments on commit f7ae76d

Please sign in to comment.