swh.core.cli package#
Submodules:
Module contents:
- class swh.core.cli.SWHHelpFormatter(indent_increment: int = 2, width: int | None = None, max_width: int | None = None)[source]#
Bases:
HelpFormatterA subclass of click’s HelpFormatter which converts some :ref: to links to the SWH documentation
- class swh.core.cli.AliasedGroup(name=None, commands=None, **attrs)[source]#
Bases:
GroupA simple Group that supports:
command aliases
notes related to options
It will also ensure the –help option can always be handled by disabling the callback of the group when the tool is called with –help or -h
- swh.core.cli.clean_exit_on_signal(signal, frame)[source]#
Raise a SystemExit exception to let command-line clients wind themselves down on exit