[network-manager-applet/nma-0-9-8] editor: allow short options
- From: JiÅÃ KlimeÅ <jklimes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/nma-0-9-8] editor: allow short options
- Date: Mon, 18 Feb 2013 14:04:01 +0000 (UTC)
commit 17a12a9205c1a41333dd3b85f9f75d3f0df7c9f2
Author: JiÅÃ KlimeÅ <jklimes redhat com>
Date: Mon Feb 18 14:30:53 2013 +0100
editor: allow short options
--type = -t
--create = -c
--show = -s
--edit = -e
src/connection-editor/main.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/connection-editor/main.c b/src/connection-editor/main.c
index cf841a5..cb5d4b5 100644
--- a/src/connection-editor/main.c
+++ b/src/connection-editor/main.c
@@ -17,7 +17,7 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
- * Copyright (C) 2004 - 2012 Red Hat, Inc.
+ * Copyright (C) 2004 - 2013 Red Hat, Inc.
*/
#ifdef HAVE_CONFIG_H
@@ -353,10 +353,10 @@ main (int argc, char *argv[])
gboolean show_list;
GOptionEntry entries[] = {
- { ARG_TYPE, 0, 0, G_OPTION_ARG_STRING, &type, "Type of connection to show or create",
NM_SETTING_WIRED_SETTING_NAME },
- { ARG_CREATE, 0, 0, G_OPTION_ARG_NONE, &create, "Create a new connection", NULL },
- { ARG_SHOW, 0, 0, G_OPTION_ARG_NONE, &show, "Show a given connection type page", NULL },
- { "edit", 0, 0, G_OPTION_ARG_STRING, &uuid, "Edit an existing connection with a given
UUID", "UUID" },
+ { ARG_TYPE, 't', 0, G_OPTION_ARG_STRING, &type, "Type of connection to show or create",
NM_SETTING_WIRED_SETTING_NAME },
+ { ARG_CREATE, 'c', 0, G_OPTION_ARG_NONE, &create, "Create a new connection", NULL },
+ { ARG_SHOW, 's', 0, G_OPTION_ARG_NONE, &show, "Show a given connection type page", NULL
},
+ { "edit", 'e', 0, G_OPTION_ARG_STRING, &uuid, "Edit an existing connection with a given
UUID", "UUID" },
{ NULL }
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]