CLI11 icon indicating copy to clipboard operation
CLI11 copied to clipboard

Question: Options formatting

Open sergeyklay opened this issue 6 years ago • 1 comments

Is there any simple way to get formatted help output for options like this:

Options:
      --option1 TEXT Some description for option1
  -h, --help         Print this help message and quit
      --vernum       Print the version of the application as integer and quit
  -V, --version      Print application version information and quit

Instead of (current behavior):

Options:
  --option1 TEXT Some description for option1
  -h,--help      Print this help message and quit
  --vernum       Print the version of the application as integer and quit
  -V,--version   Print application version information and quit

Thank you

sergeyklay avatar Nov 28 '19 14:11 sergeyklay

You can write any formatter you like, there's a system in place for that (not very well documented, though). However, such a change looks quite useful for the main formatter; I'd take a PR to fix that (or may eventually manage to write one myself).

henryiii avatar Dec 17 '19 14:12 henryiii