diff options
author | 2016-03-03 17:14:12 +0200 | |
---|---|---|
committer | 2016-03-03 17:14:12 +0200 | |
commit | 951a503356fd359407a8fae791b75fa8881dc04c (patch) | |
tree | 2da507afa9a3240d1a7892a55a5b7c27581fa799 /scripts/automation/trex_control_plane/stl/console | |
parent | 42c621b92fca9c9ef916ce9896aecea0290ce2aa (diff) |
console help looks better now
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/console')
-rwxr-xr-x | scripts/automation/trex_control_plane/stl/console/trex_console.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/automation/trex_control_plane/stl/console/trex_console.py b/scripts/automation/trex_control_plane/stl/console/trex_console.py index ffad03f3..e037f517 100755 --- a/scripts/automation/trex_control_plane/stl/console/trex_console.py +++ b/scripts/automation/trex_control_plane/stl/console/trex_console.py @@ -252,16 +252,16 @@ class TRexConsole(TRexGeneralCmd): def postcmd(self, stop, line): if not self.stateless_client.is_connected(): - self.prompt = "TRex (offline) > " + self.prompt = "trex(offline)>" self.supported_rpc = None return stop if self.stateless_client.is_all_ports_acquired(): - self.prompt = "TRex (read only) > " + self.prompt = "trex(read-only)>" return stop - self.prompt = "TRex > " + self.prompt = "trex>" return stop @@ -614,8 +614,9 @@ class TRexConsole(TRexGeneralCmd): help = "*** Undocumented Function ***\n" except AttributeError: help = "*** Undocumented Function ***\n" - - print "{:<30} {:<30}".format(cmd + " - ", help) + + l=help.splitlines() + print "{:<30} {:<30}".format(cmd + " - ",l[0] ) # a custorm cmdloop wrapper def start(self): |