Adjust boolean switch aliases to follow logical defaults#28
Conversation
…defaults # Conflicts: # NEWS.md # R/args.R # README.md # tests/testthat/test-regressions.R
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9398a7d5d3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cbc5784f54
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 16dd0bf969
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
This makes boolean switch help default-driven without making parsing brittle. Help now shows the most useful spelling for changing the default, while the parser accepts common explicit boolean forms users are likely to try.
User-facing changes
FALSE,TRUE, andNAlogical defaults are boolean switches by default.--fooforfoo <- FALSE,--no-fooforfoo <- TRUE, and--foo / --no-fooforfoo <- NA.[default: true],[enabled by default], or toggle hints. It shows the flag spelling plus any user-provided description.--foo,--no-foo,--foo=true,--foo=false,--foo true, and--foo falsewhere the alias is enabled.--fooand--no-foocount as supplied values; omittedfoo <- NAremainsNA.foo <- TRUEnormally shows--no-foo, but--foo=falseis still accepted as an explicit value forfoo.#| negative_alias: falseonly disables the generated--no-*spelling. It does not disable--fooor explicit value forms such as--foo=false.foo <- TRUEuses#| negative_alias: false, help falls back to--foo <FOO>because there is no default-changing bare alias left.#| arg_type: optionremains available when a boolean input should require an explicit value; generated--no-*spellings are rejected for these explicit bool options.docs/boolean-options.md.Internal changes
accepts_*helpers for parser acceptance andshows_*helpers for help display.--no-*spellings before positional fallback.