def parse_options(parser, args):
    (options, args) = parser.parse_args(args)

    if not args:
        parser.print_usage()
        raise SystemExit(1)

    if args[0] not in ("start", "stop", "status"):
        parser.print_usage()
        raise SystemExit(1)

    return options, args
Parse command line options and print usage message if no arguments were
dataset/ETHPy150Open tmm1/graphite/carbon/lib/carbon/conf.py/parse_options