adding comments to CLI
This commit is contained in:
@@ -395,6 +395,12 @@ class CLI( Cmd ):
|
|||||||
# read data but before it has been printed.
|
# read data but before it has been printed.
|
||||||
node.sendInt()
|
node.sendInt()
|
||||||
|
|
||||||
|
def precmd( self, line ):
|
||||||
|
"allow for comments in the cli"
|
||||||
|
if '#' in line:
|
||||||
|
line = line.split( '#' )[ 0 ]
|
||||||
|
return line
|
||||||
|
|
||||||
|
|
||||||
# Helper functions
|
# Helper functions
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user