diff --git a/README.md b/README.md index 42e8614..5637c3e 100644 --- a/README.md +++ b/README.md @@ -208,6 +208,7 @@ optional arguments: --unpack output interpreted nbt --json output nbt as json --path output all the matching tags + --find recursively find the first matching tag ``` ### Read nbt data @@ -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