adding comments to CLI

This commit is contained in:
cody burkard
2014-09-15 15:52:14 -07:00
parent cde6c3aaf4
commit c5e8f09b10
+6
View File
@@ -395,6 +395,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