diff --git a/mininet/cli.py b/mininet/cli.py index f6d7521..dc531c1 100644 --- a/mininet/cli.py +++ b/mininet/cli.py @@ -400,6 +400,12 @@ class CLI( Cmd ): # read data but before it has been printed. node.sendInt() + def precmd( self, line ): + "allow for comments in the cli" + if '#' in line: + line = line.split( '#' )[ 0 ] + return line + # Helper functions