Skip to content

Same command in different subcommand #186

Answered by c-blake
svercl asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah. I thought that might be the motivation. One of the original pushers for sub-sub/sub-sub-sub command type stuff was @xmonader who was trying to replicate Docker which I personally find very overboard along these lines. { And as much as Go has much mind share over Nim, I don't think some CLI toolkit for it or Docker's popularity exactly constitutes some new standard in multi-level sub-sub-sub-cmd type CLIs. }

So, replicating existing is still a pretty special edge case, perhaps being ok as manual as it is, but I am open-minded. I introduced that whole parseOnly/setByParse stuff for other such edge cases, but using it remains pretty manual. It's not always easy to automate every thing.

Y…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@svercl
Comment options

@svercl
Comment options

@c-blake
Comment options

@svercl
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by c-blake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants