Skip to content
Myr

Document automatic lowercasing of parameter names

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

Be explicit in documenting that parameter names are lowercased as this can cause confusion otherwise.

authored by Lasse Bigum · committed by GitHub · parent cd90e83 · Browse files · 1 file+3 added−0 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+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:docs/parameters.rst+3 added
89 unmodified lines
90If all names for a parameter contain dashes, the internal name is generated91automatically by taking the longest argument and converting all dashes to92underscores.9394All parameter names are converted to lowercase.9596Examples:9798* For an option with ``('-f', '--foo-bar')``, the parameter name is `foo_bar`.99* For an option with ``('-x',)``, the parameter is `x`.100* For an option with ``('-f', '--filename', 'dest')``, the parameter name is `dest`.101* For an option with ``('--CamelCaseOption',)``, the parameter is `camelcaseoption`.102* For an arguments with ``(`foogle`)``, the parameter name is `foogle`. To103 provide a different human readable name for use in help text, see the section104 about :ref:`doc-meta-variables`.105
31 unmodified lines