def command(opts, parser, extra_arg_groups=None): from rez.status import status import sys if opts.tools: b = status.print_tools(opts.OBJECT) else: b = status.print_info(opts.OBJECT) sys.exit(0 if b else 1)