summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-03-27 21:39:11 +0200
committerAleksander Morgado <aleksander@aleksander.es>2016-03-27 21:39:11 +0200
commitf156ec06fb74d2401ab7147c0977e4fdff20eb52 (patch)
tree80ffd530da32fef9bb94699593db01a9ec811cc5
parent0f9377686d08f4ac360c9f1df3366c91af44209f (diff)
downloadModemManager-f156ec06fb74d2401ab7147c0977e4fdff20eb52.tar.gz
context: use G_OPTION_ARG_FILENAME when a file path is expected
-rw-r--r--cli/mmcli-modem-messaging.c2
-rw-r--r--src/mm-context.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/cli/mmcli-modem-messaging.c b/cli/mmcli-modem-messaging.c
index 0159fa12a..c424eac0f 100644
--- a/cli/mmcli-modem-messaging.c
+++ b/cli/mmcli-modem-messaging.c
@@ -64,7 +64,7 @@ static GOptionEntry entries[] = {
"Create a new SMS in a given modem",
"[\"key=value,...\"]"
},
- { "messaging-create-sms-with-data", 0, 0, G_OPTION_ARG_STRING, &create_with_data_str,
+ { "messaging-create-sms-with-data", 0, 0, G_OPTION_ARG_FILENAME, &create_with_data_str,
"Pass the given file as data contents when creating a new SMS",
"[File path]"
},
diff --git a/src/mm-context.c b/src/mm-context.c
index cfa75996a..a9bb007a6 100644
--- a/src/mm-context.c
+++ b/src/mm-context.c
@@ -31,7 +31,7 @@ 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", "[LEVEL]" },
- { "log-file", 0, 0, G_OPTION_ARG_STRING, &log_file, "Path to log file", "[PATH]" },
+ { "log-file", 0, 0, G_OPTION_ARG_FILENAME, &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 }
@@ -79,7 +79,7 @@ static const GOptionEntry test_entries[] = {
{ "test-session", 0, 0, G_OPTION_ARG_NONE, &test_session, "Run in session DBus", NULL },
{ "test-no-auto-scan", 0, 0, G_OPTION_ARG_NONE, &test_no_auto_scan, "Don't auto-scan looking for devices", NULL },
{ "test-enable", 0, 0, G_OPTION_ARG_NONE, &test_enable, "Enable the Test interface in the daemon", NULL },
- { "test-plugin-dir", 0, 0, G_OPTION_ARG_STRING, &test_plugin_dir, "Path to look for plugins", "[PATH]" },
+ { "test-plugin-dir", 0, 0, G_OPTION_ARG_FILENAME, &test_plugin_dir, "Path to look for plugins", "[PATH]" },
{ NULL }
};