diff options
| author | Ilia <43654815+istudyatuni@users.noreply.github.com> | 2024-05-29 14:06:27 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-29 11:06:27 +0000 |
| commit | 6d07f702e1d662f28463f4c9e4346b197da4cb63 (patch) | |
| tree | 8562f06843dc9fbd1797933a0d509bdf5f147c16 /crates/typst-cli/src/args.rs | |
| parent | b73b3ca33521a4f4546e14b788a8de227602f947 (diff) | |
Add ability to choose between minified and pretty-printed JSON (#4161)
Diffstat (limited to 'crates/typst-cli/src/args.rs')
| -rw-r--r-- | crates/typst-cli/src/args.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/typst-cli/src/args.rs b/crates/typst-cli/src/args.rs index f49d35c7..22769fb2 100644 --- a/crates/typst-cli/src/args.rs +++ b/crates/typst-cli/src/args.rs @@ -153,6 +153,10 @@ pub struct QueryCommand { /// The format to serialize in #[clap(long = "format", default_value = "json")] pub format: SerializationFormat, + + /// Whether to pretty-print the serialized output + #[clap(long)] + pub pretty: bool, } // Output file format for query command |
