From 79dc71004bc55bbe63a5a227c54b3608903977ba Mon Sep 17 00:00:00 2001 From: hohav Date: Sun, 23 May 2021 16:09:40 -0700 Subject: [PATCH] replace `-q` example with `jq` --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cce260c..a914a99 100644 --- a/README.md +++ b/README.md @@ -15,11 +15,12 @@ Run `slp --help` for a complete list of options. Print the post-frame action state for each port (player) on the last frame of the game: ```bash -$ slp -nq frames[-1].ports[].leader.post.state game.slp -["14:WAIT","1:DEAD_LEFT"] +$ slp -n game.slp | jq .frames[-1].ports[].leader.post.state +"14:WAIT" +"1:DEAD_LEFT" ``` -Convert a replay to JSON: +Convert a replay to JSON, skipping frame data: ```bash $ slp -s game.slp | jq # `-s` to skip frame data; `jq` for pretty-printing