From 0b5d24148bd9cc21208a8c1ff5ef3ef609328edd Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Wed, 8 Feb 2017 16:30:36 -0800 Subject: [PATCH] default(): add CR to error(); also clean up docstring --- mininet/cli.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mininet/cli.py b/mininet/cli.py index 947eca4..5b4a292 100644 --- a/mininet/cli.py +++ b/mininet/cli.py @@ -399,15 +399,16 @@ class CLI( Cmd ): def default( self, line ): """Called on an input line when the command prefix is not recognized. - Overridden to run shell commands when a node is the first CLI argument. - Past the first CLI argument, node names are automatically replaced with - corresponding IP addrs.""" + Overridden to run shell commands when a node is the first + CLI argument. Past the first CLI argument, node names are + automatically replaced with corresponding IP addrs.""" first, args, line = self.parseline( line ) if first in self.mn: if not args: - error( "*** Enter a command for node: %s " % first ) + error( '*** Please enter a command for node: %s \n' + % first ) return node = self.mn[ first ] rest = args.split( ' ' )