dry-rb / dry-cli

General purpose Command Line Interface (CLI) framework for Ruby
https://dry-rb.org/gems/dry-cli
MIT License
327 stars 41 forks source link

Fix wrong example for subcommands #118

Closed npupko closed 2 years ago

npupko commented 3 years ago

It doesn't work with foo generate config after setting up Foo::CLI::Commands.register "generate configuration" The command should have the same name.

I.e. it's better to change

Foo::CLI::Commands.register "generate configuration"

for

Foo::CLI::Commands.register "generate config"

or foo generate config to foo generate configuration. I decided to go with second option