Skip to content
Myr

Merge pull request #1055 from ZenithDK/patch-1

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

Document automatic lowercasing of parameter names

authored by Dan Sully · committed by GitHub · parents c2ad121, 09b672b · 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.9394The internal name is 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