From 01e0758e5d5ffec6ac7f508f2d3e0a1c1dc682f9 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Thu, 16 Aug 2012 16:12:55 -0700 Subject: [PATCH] Add 'type mn -h for details' to usage message. --- bin/mn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/mn b/bin/mn index 77f65b8..91cac20 100755 --- a/bin/mn +++ b/bin/mn @@ -143,7 +143,10 @@ class MininetRunner( object ): "command line. It can create parametrized topologies,\n" "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, HOSTS, HOSTDEF, 'host' ) addDictOption( opts, CONTROLLERS, CONTROLLERDEF, 'controller' )