mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
util.argparse: Translate '-' to '_' in long option names for convenience
A review of existing code suggests nothing will break. So, here we go...
This commit is contained in:
parent
8e38a4740e
commit
69ce40a6d2
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ local function parse(arg, config)
|
|||
param_k, param_v = param, true;
|
||||
end
|
||||
end
|
||||
param_k = param_k:gsub("%-", "_");
|
||||
end
|
||||
parsed_opts[param_k] = param_v;
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue