Extend example 0717 to pin the offending token VIEW and its args index for every failure the parser's Diag populates: unknown-command, unknown-group, too-few-args, missing-value, value-eats-flag, and the missing-required index. Closes the test-coverage gap flagged in review; cli.sx parser logic unchanged.
45 lines
819 B
Plaintext
45 lines
819 B
Plaintext
dispatch-group: ok
|
|
dispatch-command: ok
|
|
dispatch-index: ok
|
|
flag-value: ok
|
|
flag-value-set: ok
|
|
bool-set: ok
|
|
json-set: ok
|
|
no-rest: ok
|
|
value-is-view: ok
|
|
group-is-view: ok
|
|
dispatch-2nd: ok
|
|
2nd-bool: ok
|
|
2nd-json-unset: ok
|
|
sep-value: ok
|
|
sep-rest-len: ok
|
|
sep-rest-0: ok
|
|
sep-rest-1: ok
|
|
sep-no-bool: ok
|
|
bare-rest-len: ok
|
|
bare-rest-0: ok
|
|
dash-value: ok
|
|
err-unknown-cmd: ok
|
|
err-unknown-group: ok
|
|
err-too-few: ok
|
|
err-unknown-flag: ok
|
|
err-missing-value: ok
|
|
err-value-eats-flag: ok
|
|
err-missing-req: ok
|
|
diag-flag-tag: ok
|
|
diag-flag-token: ok
|
|
diag-cmd-tag: ok
|
|
diag-cmd-token: ok
|
|
diag-group-tag: ok
|
|
diag-group-token: ok
|
|
diag-too-few-tag: ok
|
|
diag-too-few-token: ok
|
|
diag-missing-value-tag: ok
|
|
diag-missing-value-token: ok
|
|
diag-value-eats-tag: ok
|
|
diag-value-eats-token: ok
|
|
diag-req-tag: ok
|
|
diag-req-token: ok
|
|
diag-req-index: ok
|
|
=== DONE ===
|