diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-02-24 02:10:17 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-02-24 02:10:17 -0500 |
commit | b358e9f0bbe26874a21e65b8ddfa00da049559a0 (patch) | |
tree | 601c90eb74304968028b3f962f68024a22f61e4b /cmd2.py | |
parent | 3e69e10328370884fc1a55de6ba9bef7f7e01d73 (diff) | |
download | cmd2-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-x | cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() |