Skip to content
Myr

Added notes on no auto correction

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

authored by Armin Ronacher · committed by Armin Ronacher · parent e77783d · Browse files · 2 files+18 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

2 files+18 added−0 removed

  • other:+18 added−0 removed

2 files+18 added−0 removed

modified:docs/advanced.rst+2 added
6 unmodified lines
7itself, there are countless of patterns that can be implemented by extending8click. This page should give some inspiration of what can be9accomplished.1011.. _aliases:1213Command Aliases14---------------1516Many tools support aliases for commands. For instance you can configure
103 unmodified lines
modified:docs/why.rst+16 added
128 unmodified lines
129130In this particular case click attempts to stay with a handful of accepted131paradigms for building command line interfaces that can be well documented132and tested.133134135Why No Auto Correction?136-----------------------137138The question came up why click does not auto correct parameters given that139even optparse and argparse support automatic expansion of long arguments.140The reason for this is that it's a liability for backwards compatibility.141If people start relying on automatically modified parameters and someone142adds a new parameter in the future, the script might stop working. These143kind of problems are hard to find so click does not attempt to be magical144about this.145146This sort of behavior however can be implemented on a higher level to147support things such as explicit aliases. For more information see148:ref:`aliases`.