Skip to content
Myr

how names are produced

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

authored by Estevan Pequeno · committed by Estevan Pequeno · parent 2512723 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/parameters.rst+1 added-1 removed
66 unmodified lines
67single dash is added as short argument, each string starting with a double68dash as long one. If a string is added without any dashes it's the69internal parameter name which is also used as variable name.7071If a parameter does not have a name without dashes added one is generated71If a parameter is not given a name without dashes a name is generated72automatically by taking the longest argument and converting all dashes to73underscores. So for an option with ``('-f', '--foo-bar')`` the parameter74name is `foo_bar`. For an option with ``('-x',)`` the parameter is `x`.75For an option with ``('-f', '--filename', 'dest')`` the parameter is
33 unmodified lines