diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2016-03-27 21:35:44 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2016-03-27 21:35:55 +0200 |
commit | 0f9377686d08f4ac360c9f1df3366c91af44209f (patch) | |
tree | 05158b02e488ec5a9c83b7f8653a33b6623cf7eb | |
parent | 6ba37aa041627d7246303cd7e46c8ff88f5634cc (diff) | |
download | ModemManager-0f9377686d08f4ac360c9f1df3366c91af44209f.tar.gz |
context: fix --help output
The options that require an argument should explicitly specify so.
Before:
--log-level=INFO Log level: one of [ERR, WARN, INFO, DEBUG]
--log-file Path to log file
After:
--log-level=[LEVEL] Log level: one of ERR, WARN, INFO, DEBUG
--log-file=[PATH] Path to log file
-rw-r--r-- | src/mm-context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mm-context.c b/src/mm-context.c index 4f8885181..cfa75996a 100644 --- a/src/mm-context.c +++ b/src/mm-context.c @@ -30,8 +30,8 @@ static gboolean rel_ts; static const GOptionEntry entries[] = { { "version", 'V', 0, G_OPTION_ARG_NONE, &version_flag, "Print version", NULL }, { "debug", 0, 0, G_OPTION_ARG_NONE, &debug, "Run with extended debugging capabilities", NULL }, - { "log-level", 0, 0, G_OPTION_ARG_STRING, &log_level, "Log level: one of [ERR, WARN, INFO, DEBUG]", "INFO" }, - { "log-file", 0, 0, G_OPTION_ARG_STRING, &log_file, "Path to log file", NULL }, + { "log-level", 0, 0, G_OPTION_ARG_STRING, &log_level, "Log level: one of ERR, WARN, INFO, DEBUG", "[LEVEL]" }, + { "log-file", 0, 0, G_OPTION_ARG_STRING, &log_file, "Path to log file", "[PATH]" }, { "timestamps", 0, 0, G_OPTION_ARG_NONE, &show_ts, "Show timestamps in log output", NULL }, { "relative-timestamps", 0, 0, G_OPTION_ARG_NONE, &rel_ts, "Use relative timestamps (from MM start)", NULL }, { NULL } |