tj / commander

The complete solution for Ruby command-line executables
http://visionmedia.github.com/commander
MIT License
1.09k stars 64 forks source link

Default help formatter hard limits command length to 20 characters #98

Closed jszwedko closed 9 years ago

jszwedko commented 9 years ago

It would be nice if this was instead based on the length of the longest command or was configurable.

https://github.com/tj/commander/blob/master/lib/commander/help_formatters/terminal/help.erb#L12

@stephenchu

ggilder commented 9 years ago

Hmm, it doesn't "limit" the name, it just doesn't line everything up any more if you have a name longer than 20 characters. In any case, would you be interested in putting together a patch for this?

jszwedko commented 9 years ago

Sorry, I should have been clearer -- yeah, it's just the command descriptions don't line up for commands whose name is longer than 20 characters (we discovered this using the "subcommand" pattern discussed here: https://github.com/tj/commander/issues/52).

I'll take a crack at a patch.

ggilder commented 9 years ago

This issue was moved to commander-rb/commander#8