[PATCH 04/13] Add help for <action> of netconf-cli.py

Matthew W. S. Bell matthew at bells23.org.uk
Sat Apr 25 18:18:29 UTC 2009


From: Matthew W. S. Bell <mentor at engelbert.(none)>


Signed-off-by: Matthew W. S. Bell <matthew at bells23.org.uk>
---
 src/netconf-cli.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/netconf-cli.py b/src/netconf-cli.py
index 5716efb..c57a9b7 100755
--- a/src/netconf-cli.py
+++ b/src/netconf-cli.py
@@ -117,7 +117,8 @@ class NetconfController(object):
         if 'ifup' in argv[0] or 'ifdown' in argv[0]:
             parser.usage = '%s [options] <iface>' % argv[0]
         else:
-            parser.usage = '%s [options] <action> <iface>' % argv[0]
+            parser.usage = '%s [options] <action> <iface>\n' \
+			'\t<action> can be \'ifup\' or \'ifdown\'' % argv[0]
         parser.add_option('--control-socket', dest='controlsocket',
                           metavar='SOCKET_PATH', default='./netconfd-ctl.sock',
                           help='specify location of netconfd\'s control socket')
-- 
1.6.2.4




More information about the netconf-devel mailing list