replace multi-char single-dash flags with -- long options#91
Open
thetic wants to merge 6 commits into
Open
Conversation
POSIX convention reserves single-dash flags for single letters. All multi-character short flags (-lg, -ln, -ll, -lo, -lgl, -rs, -sg, -sn, -st, -xg, -xn, -xsg, -xsn, -xt, -xst) are replaced with -- long options (--list-groups, --list-tests, etc.). Long options accept both "--flag value" and "--flag=value" forms. -vv is retained as-is. The cmake discovery script and its tests are updated to use the new flags.
Contributor
|
Every remaining short flag now has a --long-option equivalent: -h → --help -v → --verbose / --verbose=1 -vv → --verbose=2 -c → --color -b → --reverse -f → --crash-on-fail -e → --no-rethrow -g → --group -n → --name -t → --test -r → --repeat (also --repeat=N) -s → --shuffle (also --shuffle=N) --verbose=2 activates very-verbose mode; --verbose=3 or higher is an error. All long options accept both "flag value" and "flag=value" forms where applicable.
80ea7f0 to
4f771f0
Compare
Prints "mutiny v<version>" and exits 0, following POSIX convention.
Covers the return-0 path, version string in output, and tests-not-run.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
POSIX convention reserves single-dash flags for single letters (optionally followed by an argument). All multi-character short flags were replaced with
--long options:-lg--list-groups-ln--list-tests-ll--list-locations-lo--list-ordered-locations-lgl--list-group-locations-rs--run-skipped-sg--exact-group-sn--exact-name-st--exact-test-xg--exclude-group-xn--exclude-name-xt--exclude-test-xsg--exclude-exact-group-xsn--exclude-exact-name-xst--exclude-exact-test-vvis retained as-is. Single-letter flags (-g,-n,-t,-v,-c,-b,-r,-s,-f,-e,-h) are unchanged.Long options accept both
--flag valueand--flag=valueforms.Related Issues
Fixes # (issue number)
Type of Change
Manual Verification (Optional)
N/A — covered by existing test suite (53/53 pass).
Checklist
docs/for any user-facing changes.mu::tinynamespace,INCLUDED_MU_TINY_guards,mutiny_C-prefix)..hand.c.cpp) is required for parity.CONTRIBUTING.mdfile to ensure compliance with architectural guidelines.