Skip to content
Myr

Fix typos in docs (#623)

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

authored by Radovan Bast · committed by Adrian · parent a50befd · Browse files · 5 files+5 added−5 removed
This commit

State

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

Diff stats

5 files+5 added−5 removed

  • other:+5 added−5 removed

5 files+5 added−5 removed

modified:docs/advanced.rst+1 added-1 removed
275 unmodified lines
276 command will abort with an error that there are leftover arguments.277 If you go with this solution, the extra arguments will be collected in278 :attr:`Context.args`.2792. You can attach a :func:`argument` with ``nargs`` set to `-1` which280 will eat up all leftover arguments. In this case it's recommeded to280 will eat up all leftover arguments. In this case it's recommended to281 set the `type` to :data:`UNPROCESSED` to avoid any string processing282 on those arguments as otherwise they are forced into unicode strings283 automatically which is often not what you want.284
95 unmodified lines
modified:docs/bashcomplete.rst+1 added-1 removed
40 unmodified lines
41with dashes replaced by underscores.4243If your tool is called ``foo-bar``, then the magic variable is called44``_FOO_BAR_COMPLETE``. By exporting it with the ``source`` value it will45spit out the activation script which can be trivally activated.45spit out the activation script which can be trivially activated.4647For instance, to enable Bash completion for your ``foo-bar`` script, this48is what you would need to put into your ``.bashrc``::49
20 unmodified lines
modified:docs/commands.rst+1 added-1 removed
435 unmodified lines
436you're not satisfied with the defaults.437438The default map can be nested arbitrarily for each subcommand and439provided when the script is invoked. Alternatively, it can also be440overriden at any point by commands. For instance, a top-level command could440overridden at any point by commands. For instance, a top-level command could441load the defaults from a configuration file.442443Example usage:444
114 unmodified lines
modified:docs/upgrading.rst+1 added-1 removed
42 unmodified lines
4344Multicommand Chaining API45`````````````````````````4647Click 3 introduced multicommand chaning. This required a change in how47Click 3 introduced multicommand chaining. This required a change in how48Click internally dispatches. Unfortunately this change was not correctly49implemented and it appeared that it was possible to provide an API that50can inform the super command about all the subcommands that will be51invoked.
49 unmodified lines
modified:docs/utils.rst+1 added-1 removed
224 unmodified lines
225226.. versionadded:: 2.0227228Click supports launching applications through :func:`launch`. This can be229used to open the default application assocated with a URL or filetype.229used to open the default application associated with a URL or filetype.230This can be used to launch web browsers or picture viewers, for instance.231In addition to this, it can also launch the file manager and automatically232select the provided file.233
165 unmodified lines