Update CLI Reference

Lucas Schwiderski 2024-02-05 16:08:08 +01:00
parent f250153d72
commit dc3c4dc9bd

@ -98,6 +98,16 @@ Therefore, the content of all of the game's bundles can be listed at once, using
dtmt bundle list "<path to game>\bundle"
```
#### Specifying command line tools
Certain operations, such as decompiling Lua, require external command line tools. By default, dtmt will attempt to use a binary named like the corresponding flag (e.g. for `--ljd`, the binary name is `ljd`) and expects that to be made available via PATH.
Alternatively, the flag can be used to point to a different executable. It accepts any of the following forms:
* A single file name: A binary with that name must be available via PATH
* A relative or absolute path to a file: Use the binary as-is
* Special case: If the file is named `main.py`, a binary called `python` is expected to be available via PATH
* A command string: A single string with executable and arguments separated by whitespace. See [shlex](https://docs.rs/shlex/latest/shlex/index.html) for information on parsing and compatibility.
#### Bundle Decompress