From 294bbad407c830ce858947712780875ba8972216 Mon Sep 17 00:00:00 2001
From: Bob Lantz <rlantz@cs.stanford.edu>
Date: Wed, 22 May 2013 18:03:09 -0700
Subject: [PATCH] Display usage information if there are extra arguments Fixes
 #130

---
 bin/mn | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bin/mn b/bin/mn
index b0ad9e0e..bba2353b 100755
--- a/bin/mn
+++ b/bin/mn
@@ -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."
 
-- 
GitLab