Merge pull request #380 from cdburkard/devel/cli_comments

parse comments out of CLI
This commit is contained in:
Brian O'Connor
2014-09-20 23:27:33 -07:00
+6
View File
@@ -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