cli(show): a view word with nothing after it is incomplete, not invalid #2444
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge!2444
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rev/1121-1542"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Question
When the first word of a
showline is a word the box knows but the line is still not complete —showwith no view, orshow mac/show power— is the refusal% Invalid …or% Incomplete command.?Evidence
% Incomplete command.= "You did not enter all the keywords or values required by this command";% Invalid input detected at '^' marker.= "You entered the command incorrectly". Same table in the 15.2(7)E 2960-X and 17.15.x 9600 references.SW1#clear mac address-table→% Incomplete command.— a known keyword chain one word short, which is exactly the shape ofshow mac.Before / after
The console already carried both completions in
SHOW_VIEW_TAILS, andshow ?prints both rows as completions ofshow. The spelling echoed back is the one typed. Unchanged: an unknown word is still% Invalid show command: <word>,show pois still ambiguous, andshow mac address-table/show power inlineprint as before.do showin config mode takes the same path.Tests
test/show-incomplete-view-word.test.js— 23 checks (old handler: 9 passed / 14 failed).node scripts/syntax-check.js— 541 files, all OK.npm test— 461 suites, 15598 assertions, 0 failed.Left open
% Incomplete command:(house style, recorded in the research note).show mac addr) and a capitalised tail (show mac Address-Table) are still refused — a different question, asked of the tail rather than of the missing word.research/show-incomplete-view-word.mdhas the sources, the inference and what would settle the rest.