context: use G_OPTION_ARG_FILENAME when a file path is expected

This commit is contained in:
Aleksander Morgado
2016-03-27 21:39:11 +02:00
parent 0f9377686d
commit f156ec06fb
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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]"
},