xacro.cli module

class xacro.cli.ColoredOptionParser(usage=None, option_list=None, option_class=<class 'optparse.Option'>, version=None, conflict_handler='error', description=None, formatter=None, add_help_option=True, prog=None, epilog=None)

Bases: OptionParser

error(msg: string)

Print a usage message incorporating ‘msg’ to stderr and exit. If you override this in a subclass, it should not return – it should either exit or raise an exception.

class xacro.cli.IndentedHelpFormatterWithNL(*args, **kwargs)

Bases: IndentedHelpFormatter

format_option(text)
xacro.cli.load_mappings(argv)

Load name mappings encoded in command-line arguments. This will filter out any parameter assignment mappings.

@param argv: command-line arguments @type argv: [str] @return: name->name remappings. @rtype: dict {str: str}

xacro.cli.process_args(argv, require_input=True)
xacro.cli.wrap_with_newlines(text, width, **kwargs)