mirror of
https://github.com/morluto/rea.git
synced 2026-12-05 06:21:12 +00:00
Unknown flags, missing flag values and surplus positional arguments reported the catch-all UNKNOWN code, while a misspelled flag already reported PARSE_ERROR. Every argv parse failure now reports PARSE_ERROR with retryable false; UNKNOWN stays reserved for unexpected failures. Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
10 lines
171 B
Plaintext
10 lines
171 B
Plaintext
$ rea inspect-byte-entropy <workspace>/sample.bin -- --block-size
|
|
exit: 1
|
|
--- stdout
|
|
code: PARSE_ERROR
|
|
message: "Unknown flag: --"
|
|
retryable: false
|
|
<end>
|
|
--- stderr
|
|
<end>
|