One function
_get_argparser in bbugyi200/funky
The author described this change as “Fix: command-line arguments with leading dashes not interpretted”. It counts as a record because the check below fails on the code as it stood at cc90d0f2f and passes on a0108f834, with nothing else changed between the two runs.
Projectbbugyi200/funky
Fix saved2018-06-10
Sharing licenceMIT · LICENSE
Change size+1 −1
What the code was meant to do, written into the code itself as a docstring
Get command-line arguments. Returns: argparse.ArgumentParser object.
The change
| 31 | 31 | help='Edit an existing local alias.' | |
| 32 | 32 | ) | |
| 33 | 33 | command_group.add_argument( | |
| 34 | - | '-x', nargs='+', dest='command_args', action=_CmdAction, metavar='ARG', | |
| 34 | + | '-x', nargs=argparse.REMAINDER, dest='command_args', action=_CmdAction, metavar='ARG', | |
| 35 | 35 | help='Execute an existing local alias. The first argument must be the alias to execute. ' | |
| 36 | 36 | 'The remaining arguments are optional. If given, they are passed on to the command ' | |
| 37 | 37 | 'that is to be executed. This is typically not done manually.' |
The check that tells the two apart
fail→pass·tests/test_app.py::test_main[argv3-Execute]
Check file tests/test_app.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before itcc90d0f2feffa9b4dad6f105b6d38e62a94ba7aa
Broken version dated2018-06-09
Modulelocalalias.app
Units changed_get_argparser
Fingerprint7688aea727563af6
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.