Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.argparse: Fix bug (regression?) in argument parsing with --foo=bar | Matthew Wild | 8 days | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | 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. | ||||
* | util.argparse: Add strict mode + tests | Matthew Wild | 2025-02-17 | 1 | -6/+46 |
| | |||||
* | util.argparse: Add support for repeatable parameters | Kim Alvefur | 2022-01-05 | 1 | -0/+5 |
| | | | | These are gathered into arrays | ||||
* | util.argparse: Revise 553c6204fe5b with a different approach | Matthew Wild | 2022-04-25 | 1 | -1/+1 |
| | | | | | | The second return value is (not insensibly) assumed to be an error. Instead of returning a value there in the success case, copy the positional arguments into the existing opts table. | ||||
* | util.argparse: Add test for #1691 | Kim Alvefur | 2021-10-12 | 1 | -0/+7 |
| | |||||
* | util.argparse: Tests | Kim Alvefur | 2021-10-12 | 1 | -0/+46 |