Skip to content
Myr

docs: fix flag-pair separator and small typos in options guide (#3510)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kevin Deldycke · committed by GitHub · parents 1050d95, 16bf6cc · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/options.md+2 added-2 removed
350 unmodified lines
351* Shell scripts sometimes want to be explicit even when it's the default352* Shell aliases can set a flag, then an invocation can add a negation of the353 flag354355If a forward slash(`/`) is contained in your option name already, you can split355If a forward slash (`/`) is contained in your option name already, you can split356the parameters using `;`. In Windows `/` is commonly used as the prefix357character.358359```{eval-rst}
348 unmodified lines
708709```{caution}710For boolean flags with a pair of values, the only recognized environment variable is the one provided to the `envvar` argument.711712So an option defined as `--flag\--no-flag`, with a `envvar="FLAG"` parameter, there is no magical `NO_FLAG=<anything>` variable that is recognized. Only the `FLAG=<anything>` environment variable is recognized.712So an option defined as `--flag/--no-flag`, with an `envvar="FLAG"` parameter, there is no magical `NO_FLAG=<anything>` variable that is recognized. Only the `FLAG=<anything>` environment variable is recognized.713```714715If the flag is activated, its value is set to `flag_value`. Otherwise, the value716defaults to `None`.
84 unmodified lines