From 5e0b2ae0d5090aa89a321af03875000a8cfd58fb Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sat, 27 Jul 2024 09:41:00 +1000 Subject: [PATCH] script: add print-json-token-etc usage comments --- script/print-json-token-debug-format.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script/print-json-token-debug-format.c b/script/print-json-token-debug-format.c index 7fee255e..4f0325dc 100644 --- a/script/print-json-token-debug-format.c +++ b/script/print-json-token-debug-format.c @@ -46,6 +46,11 @@ // // Pass -a (--all-tokens) to print all tokens, including whitespace. // +// Pass -i=cbor (--input-format=cbor) to parse CBOR instead of JSON. +// +// Pass -q (--quirks) to enable all of a pre-defined set of various parser +// quirks. For example, allowing JSON comments or JSON "inf" numbers. +// // If the input or output is larger than the program's buffers (64 MiB and // 131072 tokens by default), there may be multiple valid tokenizations of any // given input. For example, if a source string "abcde" straddles an I/O