diff options
author | steve donovan <steve.j.donovan@gmail.com> | 2017-04-01 11:42:46 +0300 |
---|---|---|
committer | steve donovan <steve.j.donovan@gmail.com> | 2017-04-01 11:42:46 +0300 |
commit | c4bd71a25ace3f7b1f0c14d9223291cc94c79c4f (patch) | |
tree | a42eed7d73840a696065a3fc4f2ec73fe0ab537d | |
parent | fbc2f0b4232712e882d99f332930a8791a96e301 (diff) |
issue #226: can use either = or : to separate flag/value1.5.0
-rw-r--r-- | lua/pl/app.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/pl/app.lua b/lua/pl/app.lua index 253ae3d..21b6a7b 100644 --- a/lua/pl/app.lua +++ b/lua/pl/app.lua @@ -125,8 +125,8 @@ function app.parse_args (args,flags_with_values) flags[v] = args[i+1] i = i + 1 else - -- a value can also be indicated with = - local var,val = utils.splitv (v,'=') + -- a value can also be indicated with = or : + local var,val = utils.splitv (v,'[=:]') var = var or v val = val or true if not is_long then |