Display usage information if there are extra arguments

Fixes #130
This commit is contained in:
Bob Lantz committed 2013-05-22 18:04:35 -07:00
1 parent 83e43a42d9
commit 294bbad407
1 file changed
+5
+5
View File
@@ -196,6 +196,11 @@ class MininetRunner( object ):
self.options, self.args = opts.parse_args()
# We don't accept extra arguments after the options
if self.args:
opts.print_help()
exit()
def setup( self ):
"Setup and validate environment."