summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-02-24 02:10:17 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-02-24 02:10:17 -0500
commitb358e9f0bbe26874a21e65b8ddfa00da049559a0 (patch)
tree601c90eb74304968028b3f962f68024a22f61e4b /cmd2.py
parent3e69e10328370884fc1a55de6ba9bef7f7e01d73 (diff)
downloadcmd2-git-b358e9f0bbe26874a21e65b8ddfa00da049559a0.tar.gz
Added "-" to the list of legal characters.
This is a fix for Issue #55. Updated a couple unit tests accordingly and also added a couple new unit tests to make sure this logic is appropriately covered.
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index 0ac73d9b..057b6390 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -515,7 +515,7 @@ class Cmd(cmd.Cmd):
excludeFromHistory = '''run r list l history hi ed edit li eof'''.split()
kept_state = None
# make sure your terminators are not in legalChars!
- legalChars = u'!#$%.:?@_' + pyparsing.alphanums + pyparsing.alphas8bit
+ legalChars = u'!#$%.:?@_-' + pyparsing.alphanums + pyparsing.alphas8bit
multilineCommands = []
noSpecialParse = 'set ed edit exit'.split()
prefixParser = pyparsing.Empty()