#!/bin/bash

scenario_key=$1

if [ ! "$scenario_key" ]; then 
    echo "Missing argument 'scenario_key'"
    stoobly-agent scenario list
    exit
fi

stoobly-agent config scenario set "$scenario_key"
stoobly-agent intercept configure --mode record --order overwrite
stoobly-agent intercept disable