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 args[0] not in ('start', 'stop', 'status'):
        parser.print_usage()
        raise SystemExit(1)
    return options, args
