Test formatting of long metavariables.

This commit is contained in:
Paolo Capriotti 2013-10-20 18:12:32 +01:00
parent b5a9c2a8bf
commit 356758af0c
2 changed files with 4 additions and 2 deletions

View File

@ -8,4 +8,5 @@ opts = option $ mconcat
[ long "test"
, short 't'
, value 0
, metavar "FOO_BAR_BAZ_LONG_METAVARIABLE"
, help "This is an options with a very very long description. Hopefully, this will be nicely formatted by the help text generator." ]

View File

@ -1,10 +1,11 @@
Usage: formatting [-t|--test ARG]
Usage: formatting [-t|--test FOO_BAR_BAZ_LONG_METAVARIABLE]
This is a very long program description. This
text should be automatically wrapped to fit the
size of the terminal
Available options:
-t,--test ARG This is an options with
-t,--test FOO_BAR_BAZ_LONG_METAVARIABLE
This is an options with
a very very long
description. Hopefully,
this will be nicely