summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Grover <andy@groveronline.com>2018-02-26 10:09:24 -0800
committerGitHub <noreply@github.com>2018-02-26 10:09:24 -0800
commit445178051da1fe7a28bf1914d7e957ef9d0a290d (patch)
tree3e71275408a8e0b916162287fe95fa58ff5e8d5a
parent362deddb3ea33cfffd35d32f12598f85497733e7 (diff)
parent341018797fcb47bdeda1a5c87266d4b14f51c945 (diff)
downloadconfigshell-fb-445178051da1fe7a28bf1914d7e957ef9d0a290d.tar.gz
Merge pull request #42 from lxbsz/fix_param
Fix failing to pasre param like "cfgstr,par=val"
-rw-r--r--configshell/shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/configshell/shell.py b/configshell/shell.py
index 96c754a..3400f6d 100644
--- a/configshell/shell.py
+++ b/configshell/shell.py
@@ -118,7 +118,7 @@ class ConfigShell(object):
# Grammar of the command line
command = locatedExpr(Word(alphanums + '_'))('command')
- var = Word(alphanums + '=_\+/.<>()~@:-%[]')
+ var = Word(alphanums + ',=_\+/.<>()~@:-%[]')
value = var
keyword = Word(alphanums + '_\-')
kparam = locatedExpr(keyword + Suppress('=') + Optional(value, default=''))('kparams*')