-
-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default input handler without specifying a command #70
Comments
Since the library uses the first token of the input to lookup a command list, I could add a default handler to manage the cases where the command is unknown or wrong. However, this would comprise also the errors in the types of command parameters. |
Yes, of course. It would also be conflict with some commands. e.g: command I think the BTW, it is somewhat weird when paste something to runtime cli/include/cli/detail/linuxkeyboard.h Line 79 in e649e95
should here be modified to echo pasted content? |
Ok, @EFS86340 .
Can you open the issue 2) and 3) please? So that we can continue the discussion of each problem the in the appropriate place :-) Thank you |
Sure, so I would close this issue now. |
Like the
switch
grammar, how about register a default handler for input?For example: just input three integers after the prompt, and then call the
Add
command by default.It would be nice when a single command is massively used.
BTW,
cli
now supportsInsert
a command name ofstd::string("")
, but it seems this command would never be called.The text was updated successfully, but these errors were encountered: