commander-rb / commander

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

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

Closed ggilder closed 8 years ago

ggilder commented 9 years ago

From @jszwedko on March 2, 2015 19:26

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

Copied from original issue: tj/commander#98

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?

ggilder commented 9 years ago

From @jszwedko on March 2, 2015 19:50

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 8 years ago

Oops, I believe this was actually fixed in 4.3.4.