Keep original inconsistent ticks to reduce noise
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Kevin Deldycke · committed by Kevin Deldycke · parent 8645e70 · Browse files · 1 file·+10 added−10 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+10 added−10 removed
- other:+10 added−10 removed
Provenance
- Commit
9be1039- Tree
71734d4- Author
Kevin Deldycke <kevin@deldycke.com>- Committer
Kevin Deldycke <kevin@deldycke.com>- Parent
8645e70
1 file changed+10 added−10 removed
modified:src/click/core.py+10 added-10 removed
185 unmodified lines186 the name of the script, for commands below it it's187 the name of the script.188 :param obj: an arbitrary object of user data.189 :param auto_envvar_prefix: the prefix to use for automatic environment190- variables. If this is ``None`` then reading190+ variables. If this is `None` then reading191 from environment variables is disabled. This192 does not affect manually set environment193 variables which are always read.194 :param default_map: a dictionary (like object) with default values14 unmodified lines209 parse without any interactivity or callback210 invocation. Default values will also be211 ignored. This is useful for implementing212 things such as completion support.213- :param allow_extra_args: if this is set to ``True`` then extra arguments213+ :param allow_extra_args: if this is set to `True` then extra arguments214 at the end will not raise an error and will be215 kept on the context. The default is to inherit216 from the command.217- :param allow_interspersed_args: if this is set to ``False`` then options217+ :param allow_interspersed_args: if this is set to `False` then options218 and arguments cannot be mixed. The219 default is to inherit from the command.220 :param ignore_unknown_options: instructs click to ignore options it does221 not know and keeps them for later66 unmodified lines288 token_normalize_func: t.Callable[[str], str] | None = None,289 color: bool | None = None,290 show_default: bool | None = None,291 ) -> None:292- #: the parent context or ``None`` if none exists.292+ #: the parent context or `None` if none exists.293 self.parent = parent294 #: the :class:`Command` for this context.295 self.command = command296 #: the descriptive information name196 unmodified lines493 def scope(self, cleanup: bool = True) -> cabc.Iterator[Context]:494 """This helper method can be used with the context object to promote495 it to the current thread local (see :func:`get_current_context`).496 The default behavior of this is to invoke the cleanup functions which497- can be disabled by setting `cleanup` to ``False``. The cleanup497+ can be disabled by setting `cleanup` to `False`. The cleanup498 functions are typically used for things such as closing file handles.499 500 If the cleanup is intended the context object can also be directly501 used as a context manager.428 unmodified lines930 #: an optional dictionary with defaults passed to the context.931 self.context_settings: cabc.MutableMapping[str, t.Any] = context_settings932 933 #: the callback to execute when the command fires. This might be934- #: ``None`` in which case nothing happens.934+ #: `None` in which case nothing happens.935 self.callback = callback936 #: the list of parameters for this command in the order they937 #: should show up in the help page and execute. Eager parameters938 #: will automatically be handled before non eager ones.384 unmodified lines1323 in standalone mode. Click will then1324 handle exceptions and convert them into1325 error messages and the function will never1326 return but shut down the interpreter. If1327- this is set to ``False`` they will be1327+ this is set to `False` they will be1328 propagated to the caller and the return1329 value of this function is the return value1330 of :meth:`invoke`.1331 :param windows_expand_args: Expand glob patterns, user dir, and35 unmodified lines1367 # it's not safe to `ctx.exit(rv)` here!1368 # note that `rv` may actually contain data like "1" which1369 # has obvious effects1370 # more subtle case: `rv=[None, None]` can come out of1371- # chained commands which all returned ``None`` -- so it's not1371+ # chained commands which all returned `None` -- so it's not1372 # even always obvious that `rv` indicates success/failure1373 # by its truthiness/falsiness1374 ctx.exit()1375 except (EOFError, KeyboardInterrupt) as e:331 unmodified lines1707 @cli.result_callback()1708 def process_result(result, input):1709 return result + input1710 1711- :param replace: if set to ``True`` an already existing result1711+ :param replace: if set to `True` an already existing result1712 callback will be removed.1713 1714 .. versionchanged:: 8.01715 Renamed from ``resultcallback``.293 unmodified lines2009 nargs is ``1`` (except if the type is a tuple, then it's2010 the arity of the tuple). If ``nargs=-1``, all remaining2011 parameters are collected.2012 :param metavar: how the value is represented in the help page.2013- :param expose_value: if this is ``True`` then the value is passed onwards2013+ :param expose_value: if this is `True` then the value is passed onwards2014 to the command callback and stored on the context,2015 otherwise it's skipped.2016 :param is_eager: eager values are processed before non eager ones. This2017 should not be set for arguments or it will inverse the1256 unmodified lines