Resolving the '-' issue

Signed-off-by: Imesh Gunaratne <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/c8892d90
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/c8892d90
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/c8892d90

Branch: refs/heads/stratos-4.1.x
Commit: c8892d9004fda6874b9c7a10f9aafcb1952efd14
Parents: 7a78a98
Author: Milindu Sanoj Kumarage <[email protected]>
Authored: Wed Jul 29 09:58:37 2015 +0530
Committer: Imesh Gunaratne <[email protected]>
Committed: Tue Oct 13 16:32:46 2015 +0530

----------------------------------------------------------------------
 .../org.apache.stratos.python.cli/src/main/python/cli/Main.py    | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/c8892d90/components/org.apache.stratos.python.cli/src/main/python/cli/Main.py
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.python.cli/src/main/python/cli/Main.py 
b/components/org.apache.stratos.python.cli/src/main/python/cli/Main.py
index f5ea323..d6ef2d5 100755
--- a/components/org.apache.stratos.python.cli/src/main/python/cli/Main.py
+++ b/components/org.apache.stratos.python.cli/src/main/python/cli/Main.py
@@ -1,4 +1,5 @@
 import sys
+import readline
 import getpass
 from CLI import CLI
 import Configs
@@ -22,6 +23,9 @@ def prompt_for_credentials():
 
 
 def main():
+    # resolving the '-' issue
+    readline.set_completer_delims(readline.get_completer_delims().replace('-', 
''))
+
     cli = CLI()
 
     if len(sys.argv) > 1:

Reply via email to