def parse_options(parser, args):
    """
    Parse command line options and print usage message if no arguments were
    provided for the command.
    """
    (options, args) = parser.parse_args(args)

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

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

    return options, args
dataset/ETHPy150Open graphite-project/carbon/lib/carbon/conf.py/parse_options/swapped operands of `not in`