Skip to content
Myr

fix docs: typo and word choice (#2325)

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

authored by David Xia · committed by GitHub · parent 1c40990 · Browse files · 1 file+2 added−2 removed
This commit

State

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

Trailers

  • Co-authored-by: David Xia <davidxia@users.noreply.github.com>

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/advanced.rst+2 added-2 removed
280 unmodified lines
281 you also set :attr:`~Context.allow_extra_args` as otherwise the282 command will abort with an error that there are leftover arguments.283 If you go with this solution, the extra arguments will be collected in284 :attr:`Context.args`.2852. You can attach a :func:`argument` with ``nargs`` set to `-1` which2852. You can attach an :func:`argument` with ``nargs`` set to `-1` which286 will eat up all leftover arguments. In this case it's recommended to287 set the `type` to :data:`UNPROCESSED` to avoid any string processing288 on those arguments as otherwise they are forced into unicode strings289 automatically which is often not what you want.
48 unmodified lines
338 (:attr:`~Context.allow_interspersed_args`) which instructs the parser339 to not allow arguments and options to be mixed. Depending on your340 situation this might improve your results.341342Generally though the combinated handling of options and arguments from342Generally though the combined handling of options and arguments from343your own commands and commands from another application are discouraged344and if you can avoid it, you should. It's a much better idea to have345everything below a subcommand be forwarded to another application than to346handle some arguments yourself.
142 unmodified lines