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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user