Skip to content
Snippets Groups Projects
Commit 294bbad4 authored by Bob Lantz's avatar Bob Lantz
Browse files

Display usage information if there are extra arguments

Fixes #130
parent 83e43a42
No related branches found
No related tags found
No related merge requests found
......@@ -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."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment