datumaro.cli.util#

Functions

add_subparser(subparsers, name, builder)

at_least(n)

join_cli_args(args, *names)

Merges arg values in a list

make_subcommands_help(commands[, ...])

required_count([nmin, nmax])

show_video_import_warning()

Classes

MultilineFormatter([keep_natural])

Keeps line breaks introduced with '|n' separator and spaces introduced with '|s', also removes the 'code-block' directives.

datumaro.cli.util.add_subparser(subparsers, name, builder)[source]#
class datumaro.cli.util.MultilineFormatter(keep_natural=False, **kwargs)[source]#

Bases: HelpFormatter

Keeps line breaks introduced with ‘|n’ separator and spaces introduced with ‘|s’, also removes the ‘code-block’ directives.

datumaro.cli.util.required_count(nmin=0, nmax=0)[source]#
datumaro.cli.util.at_least(n)[source]#
datumaro.cli.util.join_cli_args(args: Namespace, *names: Iterable[str]) List[source]#

Merges arg values in a list

datumaro.cli.util.show_video_import_warning()[source]#
datumaro.cli.util.make_subcommands_help(commands, help_line_start=0)[source]#

Modules

datumaro.cli.util.compare

datumaro.cli.util.errors

datumaro.cli.util.project