asv.commands.common_args

Classes

DictionaryArgAction

Parses multiple key=value assignments into a dictionary.

PythonArgAction

Backward compatibility --python XYZ argument,

Functions

add_global_arguments(parser[, suppress_defaults])

add_compare(parser[, only_changed_default, sort_default])

add_show_stderr(parser)

add_bench(parser)

add_machine(parser)

add_environment(parser[, default_same])

add_launch_method(parser)

add_parallel(parser)

add_record_samples(parser[, record_default])

positive_int(string)

Parse a positive integer argument

positive_int_or_inf(string)

Parse a positive integer argument

time_period(string[, base_period])

Parse a time period argument with unit suffix

Module Contents

asv.commands.common_args.add_global_arguments(parser, suppress_defaults=True)[source]
asv.commands.common_args.add_compare(parser, only_changed_default=False, sort_default='name')[source]
asv.commands.common_args.add_show_stderr(parser)[source]
class asv.commands.common_args.DictionaryArgAction(option_strings, dest, converters=None, choices=None, dict_dest=None, **kwargs)[source]

Parses multiple key=value assignments into a dictionary.

converters = None[source]
__choices = None[source]
dict_dest = None[source]
__call__(parser, namespace, values, option_string=None)[source]
asv.commands.common_args.add_bench(parser)[source]
asv.commands.common_args.add_machine(parser)[source]
class asv.commands.common_args.PythonArgAction(option_strings, dest, nargs=None, **kwargs)[source]

Backward compatibility –python XYZ argument, will be interpreted as –environment :XYZ

__call__(parser, namespace, values, option_string=None)[source]
asv.commands.common_args.add_environment(parser, default_same=False)[source]
asv.commands.common_args.add_launch_method(parser)[source]
asv.commands.common_args.add_parallel(parser)[source]
asv.commands.common_args.add_record_samples(parser, record_default=False)[source]
asv.commands.common_args.positive_int(string)[source]

Parse a positive integer argument

asv.commands.common_args.positive_int_or_inf(string)[source]

Parse a positive integer argument

asv.commands.common_args.time_period(string, base_period='d')[source]

Parse a time period argument with unit suffix