pep440cmp package¶
Subpackages¶
Module contents¶
Top-level package for this CLI-based application.
-
class
pep440cmp.
ClickCommandlessGroup
(*args, **kwargs)[source]¶ Bases:
click.core.Group
Override click.Group to let user run ‘test’ command implicitly.
-
get_command
(ctx, name)[source]¶ Return the default test command if the user specifies no command name.
That is, if the first argument is a version string, then get_command should return None, and we’ll just assume the user wants to ‘test’.
-
resolve_command
(ctx, args)[source]¶ Override parent method to replace arg to complete nameless command hack.
Specifically, click.MultiCommand removes the first argument, assuming it’s the command name – but we might have overridden that logic in
get_command
, in which case we need to undo the argument removal.
-