diff options
Diffstat (limited to 'bin/rtt-show-snap')
-rwxr-xr-x | bin/rtt-show-snap | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/rtt-show-snap b/bin/rtt-show-snap index af744a7..8116d48 100755 --- a/bin/rtt-show-snap +++ b/bin/rtt-show-snap @@ -5,6 +5,9 @@ then elif [ $# -eq 2 ] then sqlite3 -column db "select state from game_snap where game_id=$1 and snap_id=$2" +elif [ $# -eq 3 ] +then + sqlite3 -column db "select state -> '$.$3' from game_snap where game_id=$1 and snap_id=$2" else - echo "usage: rtt-show-snap GAME" + echo "usage: rtt-show-snap GAME [ SNAP [ JSON-PATH ] ]" fi |