shared/verbs: stop requiring an explicit program name
Almost all programs are simple and have only a single command. When printing options, let's just use the first COMMAND block found by default. This means we can drop the explicit program-name argument and reduce copy&paste boilerplate.
This commit is contained in:
@@ -506,7 +506,7 @@ static int parse_argv(int argc, char *argv[]) {
|
||||
switch (c) {
|
||||
|
||||
OPTION_COMMON_HELP:
|
||||
return command_print_help("systemd-socket-proxyd");
|
||||
return command_print_help();
|
||||
|
||||
OPTION_COMMON_VERSION:
|
||||
return version();
|
||||
|
||||
Reference in New Issue
Block a user