Skip to content

Commit

Permalink
replace -q example with jq
Browse files Browse the repository at this point in the history
  • Loading branch information
hohav committed May 23, 2021
1 parent 8ddcdc8 commit 79dc710
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 79dc710

Please sign in to comment.