You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I second this. I have not yet seen any command line tool that allows multiple subcommands to be executed. Usually it's just one, and any following ones are discarded. Common examples are conan, cryptsetup and cargo.
I do not know what the best solution is. I know to little of the parser. But I guess just having a 'global' flag to tell you not to allow more then one command.
When one defines multiple commands at the same level
Then the following invocation
exec foo bar
printsI think the expectation here is that only one command is recognized and the other rejected as a syntax error.
Note that this differs from nesting commands like this
Which when invoked with
exec foo bar
printsAnd works as expected.
The text was updated successfully, but these errors were encountered: