jawher / mow.cli

A versatile library for building CLI applications in Go
MIT License
872 stars 55 forks source link

Handle multi line option and argument description in the generated help message #96

Closed jawher closed 5 years ago

jawher commented 5 years ago

The help output will resemble:

Usage: app [-o] ARG

Longer App Desc

Arguments:
  ARG           Argument
                Description
                Multiple
                Lines

Options:
  -o, --opt     Option
                does something
                another line (env $XXX_TEST) (default "default")
  -f, --force   Force
                does something
                another line (env $YYY_TEST)
coveralls commented 5 years ago

Coverage Status

Coverage increased (+0.03%) to 95.573% when pulling 654d4c3eaf7e40babb1af516df6616b50b66c66c on multi-line-desc into 87425527319fe8ad34b72350a6e53bdf9e24647d on master.