commander-rb / commander

The complete solution for Ruby command-line executables
MIT License
823 stars 74 forks source link

[Question] How to create a command suite with two levels of commands. #35

Closed ignazioc closed 8 years ago

ignazioc commented 8 years ago

Thanks for the great job. I'm wondering if with this tool is possible to define two levels of commands. For example:

git remote add
git remote rm

Where git is the name of the script, remote is the 1st level of command and add | rm are the actual commands.

Thanks.

azgul commented 8 years ago

Curious about this too! I realize that you can do

command 'commandName subcommandName'

but this litters commandName --help heavily if there are a lot of sub commands for each command :(

ignazioc commented 8 years ago

I switched from commander to GLI that supports this syntax by default.