Open samuela opened 5 years ago
So it sounds like you want to have heroku auth:login
act like heroku auth logic
today? Is there a reason to do this instead of just defining an auth:login
subcommand? For help management?
Yeah, it's not a huge deal writing a CLI from scratch. Just a bit of an issue if you want to rewrite an existing CLI with clap.
I think what I'm missing is what the challenge is in porting an existing CLI to clap. In what way would a auth:login
subcommand not work?
Honestly it's been a while since I was working on this, so I don't recall at this point. Things may have also changed with clap in the meantime that would obviate the need for this feature request.
I think the intention is to treat auth
as a command and then it having it's own subcommands (maybe for better organization in the help messages?).
Many CLIs use colons to separate subcommands instead of spaces, eg.
heroku auth:login
,heroku auth:logout
, etc. It would be nice to have support for this sort of thing in clap as well. It becomes especially important when maintaining backwards compatibility with CLIs written in this format.