def _script_command_options(opts):
    """Extract `command` and `options` from argparse 'opts'."""
    if opts.run_script_site is not None:
        command = 'run'
        options = opts.run_script_site
    elif opts.kill_sites is not None:
        command = 'kill'
        options = opts.kill_sites
    elif opts.status_sites is not None:
        command = 'status'
        options = opts.status_sites
    else:
        raise ValueError('Unknown request')
    return command, options
