cli: specify common options in a new group

Actions on modems from specific interfaces, like 3GPP, will also need the modem
to be specified.

The new 'Common' option group will handle all options to specify objects.
This commit is contained in:
Aleksander Morgado
2011-12-21 13:05:25 +01:00
parent 265a516f42
commit 16f2b7bdb8
5 changed files with 59 additions and 16 deletions

View File

@@ -32,6 +32,7 @@
#include <libmm-glib.h>
#include "mmcli.h"
#include "mmcli-common.h"
#define PROGRAM_NAME "mmcli"
#define PROGRAM_VERSION PACKAGE_VERSION
@@ -177,6 +178,8 @@ main (gint argc, gchar **argv)
context = g_option_context_new ("- Control and monitor the ModemManager");
g_option_context_add_group (context,
mmcli_manager_get_option_group ());
g_option_context_add_group (context,
mmcli_get_common_option_group ());
g_option_context_add_group (context,
mmcli_modem_get_option_group ());
g_option_context_add_group (context,