shared/options: add OPTION_COMMON_LOWERCASE_J
This commit is contained in:
+1
-2
@@ -259,8 +259,7 @@ static int parse_argv(int argc, char *argv[], char ***ret_args) {
|
||||
return r;
|
||||
break;
|
||||
|
||||
OPTION_SHORT('j', NULL,
|
||||
"Equivalent to --json=pretty (on TTY) or --json=short (otherwise)"):
|
||||
OPTION_COMMON_LOWERCASE_J:
|
||||
arg_json_format_flags = SD_JSON_FORMAT_PRETTY_AUTO|SD_JSON_FORMAT_COLOR_AUTO;
|
||||
break;
|
||||
|
||||
|
||||
@@ -68,6 +68,9 @@ typedef struct Option {
|
||||
OPTION('M', "machine", "CONTAINER", "Operate on local container")
|
||||
#define OPTION_COMMON_JSON \
|
||||
OPTION_LONG("json", "FORMAT", "Generate JSON output (pretty, short, or off)")
|
||||
#define OPTION_COMMON_LOWERCASE_J \
|
||||
OPTION_SHORT('j', NULL, \
|
||||
"Equivalent to --json=pretty (on TTY) or --json=short (otherwise)")
|
||||
|
||||
/* This is magically mapped to the beginning and end of the section */
|
||||
extern const Option __start_SYSTEMD_OPTIONS[];
|
||||
|
||||
Reference in New Issue
Block a user