Github user chamilad commented on a diff in the pull request: https://github.com/apache/stratos/pull/414#discussion_r35940678 --- Diff: components/org.apache.stratos.python.cli/src/main/python/cli/CLI.py --- @@ -0,0 +1,190 @@ +from cmd2 import * +from Utils import * +from Stratos import * +import Configs +from cli.exceptions import AuthenticationError + + +class CLI(Cmd): + """Apache Stratos CLI""" + + prompt = Configs.stratos_prompt + # resolving the '-' issue + Cmd.legalChars = '-' + Cmd.legalChars + + def __init__(self): + # resolving the '-' issue + [Cmd.shortcuts.update({a[3:].replace('_', '-'): a[3:]}) for a in self.get_names() if a.startswith('do_')] --- End diff -- Code readability is lesser here. IMO we should go for a cleaner approach with self describing code.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---