aboutsummaryrefslogtreecommitdiff
path: root/cli/mmcli.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2011-12-19 14:05:59 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:34 +0100
commit9e1b2105fb9b7454774a0414fa3f5958d79e8211 (patch)
tree63c6a5d2c547c3314af712d8e96978df4718f12a /cli/mmcli.c
parentc2e4d9cea709d8175e475359a2a611d3b3dcf0e4 (diff)
cli: default to showing modem info if no action specified
Diffstat (limited to 'cli/mmcli.c')
-rw-r--r--cli/mmcli.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/mmcli.c b/cli/mmcli.c
index 49c7cab5..1bd7300c 100644
--- a/cli/mmcli.c
+++ b/cli/mmcli.c
@@ -220,7 +220,10 @@ main (gint argc, gchar **argv)
else
mmcli_manager_run_synchronous (connection);
}
- /* Modem options? */
+ /* Modem options?
+ * NOTE: let this check be always the last one, as other groups also need
+ * having a modem specified, and therefore if -m is set, modem options
+ * are always enabled. */
else if (mmcli_modem_options_enabled ()) {
if (async_flag)
mmcli_modem_run_asynchronous (connection, cancellable);