summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-03-27 21:35:44 +0200
committerAleksander Morgado <aleksander@aleksander.es>2016-03-27 21:35:55 +0200
commit0f9377686d08f4ac360c9f1df3366c91af44209f (patch)
tree05158b02e488ec5a9c83b7f8653a33b6623cf7eb
parent6ba37aa041627d7246303cd7e46c8ff88f5634cc (diff)
downloadModemManager-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.c4
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 }