Add 'type mn -h for details' to usage message.

This commit is contained in:
Bob Lantz committed 2012-08-16 16:12:55 -07:00
1 parent e8238d185d
commit 01e0758e5d
1 file changed
+4 -1
+4 -1
View File
@@ -143,7 +143,10 @@ class MininetRunner( object ):
"command line. It can create parametrized topologies,\n" "command line. It can create parametrized topologies,\n"
"invoke the Mininet CLI, and run tests." ) "invoke the Mininet CLI, and run tests." )
opts = OptionParser( description=desc ) usage = ( '%prog [options]\n'
'(type %prog -h for details)' )
opts = OptionParser( description=desc, usage=usage )
addDictOption( opts, SWITCHES, SWITCHDEF, 'switch' ) addDictOption( opts, SWITCHES, SWITCHDEF, 'switch' )
addDictOption( opts, HOSTS, HOSTDEF, 'host' ) addDictOption( opts, HOSTS, HOSTDEF, 'host' )
addDictOption( opts, CONTROLLERS, CONTROLLERDEF, 'controller' ) addDictOption( opts, CONTROLLERS, CONTROLLERDEF, 'controller' )