F3.2: assert Diag (token,index) for all cli.parse error cases
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.
This commit is contained in:
@@ -28,6 +28,17 @@ 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 ===
|
||||
|
||||
Reference in New Issue
Block a user