# HG changeset patch # User Matthew Wild # Date 1680870269 -3600 # Node ID 766152afc1c9e8fdbfd5d6688ced8b8e531097ca # Parent c38b1c63aa5ce1ba131f696236ac847af8b3bfe7 util.argparse: Translate '-' to '_' in long option names for convenience A review of existing code suggests nothing will break. So, here we go... diff -r c38b1c63aa5c -r 766152afc1c9 util/argparse.lua --- a/util/argparse.lua Thu Apr 28 20:40:59 2022 +0200 +++ b/util/argparse.lua Fri Apr 07 13:24:29 2023 +0100 @@ -44,6 +44,7 @@ param_k, param_v = param, true; end end + param_k = param_k:gsub("%-", "_"); end parsed_opts[param_k] = param_v; end