Repository: stratos Updated Branches: refs/heads/stratos-4.1.x f7263a885 -> 13930c37c
Python CLI - Fixed help display for individual commands Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/13930c37 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/13930c37 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/13930c37 Branch: refs/heads/stratos-4.1.x Commit: 13930c37c30a12cdba4bc146963a61a1ccfd25b0 Parents: f7263a8 Author: Chamila de Alwis <[email protected]> Authored: Tue Nov 10 13:24:30 2015 +0530 Committer: Chamila de Alwis <[email protected]> Committed: Tue Nov 10 13:37:01 2015 +0530 ---------------------------------------------------------------------- .../org.apache.stratos.python.cli/src/main/python/cli/cli.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/13930c37/components/org.apache.stratos.python.cli/src/main/python/cli/cli.py ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.python.cli/src/main/python/cli/cli.py b/components/org.apache.stratos.python.cli/src/main/python/cli/cli.py index 996635f..572bd98 100755 --- a/components/org.apache.stratos.python.cli/src/main/python/cli/cli.py +++ b/components/org.apache.stratos.python.cli/src/main/python/cli/cli.py @@ -43,9 +43,8 @@ class CLI(Cmd): """ Override help display function """ - if arg: - Cmd.do_help(self, arg) + Cmd.do_help(self, arg.replace("-", "_")) else: cmds_doc = ["list-applications", "list-application-policies", @@ -124,8 +123,6 @@ class CLI(Cmd): self.stdout.write("%s\n" % str(self.doc_leader)) self.print_topics(self.doc_header, cmds_doc, 15, 80) - # self.print_topics(self.misc_header, help_commands.keys(), 15, 80) - # self.print_topics(self.undoc_header, cmds_undoc, 15, 80) """
