benchmarkstt.cli module¶
-
class
benchmarkstt.cli.
HelpFormatter
(*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 :param action: name of the action :param list required_args: required arguments :param list optional_args: optional arguments :rtype: ActionWithArguments