Short flag unpacker creates bogus CLI for valued flags #662
Labels
Component: CLI
Command line flags, exit code handling, ...
Priority: High
Broken behavior in specific environments like in parallel mode or only on some operating systems
Type: Bug
Milestone
Describe the bug
See #657 for an example
To Reproduce
Use a valued flag in a packed list. E.g.:
bats -FT junit
will be equivalent tobats --formatter --timing junit
. This degrades especially badly when the white space is left out accidentally:bats -j6
is translated tobats -j -6
by the unpacker.Expected behavior
Flag packs should only contain valued flags at last position or not at all.
Also fix test for -j5, see #657 (comment)_
The text was updated successfully, but these errors were encountered: