Skip to content

Commit

Permalink
docs: document --find option
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Dec 24, 2020
1 parent d99bc48 commit 83b2057
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ optional arguments:
--unpack output interpreted nbt
--json output nbt as json
--path <path> output all the matching tags
--find <path> recursively find the first matching tag
```

### Read nbt data
Expand Down Expand Up @@ -269,6 +270,13 @@ $ nbt -r my_file.nbt --path "bar" --unpack
Hello, world!
```

If you don't know exactly how to access the data you're interested in you can use the `--find` option to recursively try to match a given path.

```bash
$ nbt -r my_file.nbt --find "[1]"
2
```

### Write nbt data

You can write nbt data to a file by using the `-w` option. This will
Expand Down

0 comments on commit 83b2057

Please sign in to comment.