execute_argv

omni.kit.commands.execute_argv(name, argv: list) Tuple[bool, Any]

Execute Command using argument list..

Attempts to convert argument list into Command’s kwargs. If a Command has get_argument_parser method defined, it will be called to get argparse.ArgumentParser instance to use for parsing. Otherwise command docstring is used to extract argument information.

Parameters
  • nameCommand name.

  • argv – Argument list.