aboutsummaryrefslogtreecommitdiffstats
path: root/util/adhoc.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2025-03-11 18:27:36 +0000
committerMatthew Wild <mwild1@gmail.com>2025-03-11 18:27:36 +0000
commit06994f0bc145ebf61b7906a715f61f22a70cbe57 (patch)
tree8f326fa3cb543584b7eb8677395eb6dbf385558c /util/adhoc.lua
parentafb9bc34a098a4911effdda36c69a04aca821558 (diff)
downloadprosody-06994f0bc145ebf61b7906a715f61f22a70cbe57.tar.gz
prosody-06994f0bc145ebf61b7906a715f61f22a70cbe57.zip
util.argparse: Fix bug (regression?) in argument parsing with --foo=bar
After recent changes, '--foo bar' was working, but '--foo=bar' was not. The test had a typo (?) (bar != baz) and because util.argparse is not strict by default, the typo was not caught. The typo caused the code to take a different path, and bypassed the buggy handling of --foo=bar options. I've preserved the existing test (typo and all!) because it's still an interesting test, and ensures no unintended behaviour changes compared to the old code. However I've added a new variant of the test, with strict mode enabled and the typo fixed. This test failed due to the bug, and this commit introduces a fix.
Diffstat (limited to 'util/adhoc.lua')
0 files changed, 0 insertions, 0 deletions