benchmarkstt.cli package¶
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#e7f2fa', 'lineColor': '#2980B9' }}}%%
classDiagram
CustomHelpFormatter
HelpFormatter <|-- CustomHelpFormatter
class CustomHelpFormatter {
*args
**kwargs
+add_argument(action)
+add_arguments(actions)
+add_text(text)
+add_usage(usage, actions, groups, prefix=None)
+end_section()
+format_help()
+start_section(heading)
}
Responsible for handling the command line tools.
-
class
benchmarkstt.cli.
CustomHelpFormatter
(*args, **kwargs)[source]¶ Bases:
argparse.HelpFormatter
Custom formatter for argparse that allows us to properly display _ActionWithArguments and docblock documentation, as well as allowing newlines inside the description.
-
benchmarkstt.cli.
action_with_arguments
(action, required_args, optional_args)[source]¶ Custom argparse action to support a variable amount of arguments
- Parameters
action -- name of the action
required_args (list) -- required arguments
optional_args (list) -- optional arguments
- Return type
ActionWithArguments