Paul Ouellette
a8faa0b092
Show choices in help and usage messages
2019-05-30 13:55:13 -04:00
Paul Ouellette
55acc1689c
Fix tests broken due to change in help flag order
2019-05-24 22:48:27 -04:00
Peter Melnichenko
8a3faf3a3e
More properties for configuring usage and help messages
...
* `usage_margin`: sets margin for the second and following lines of
usage string.
* `usage_max_width`: sets usage max width for autowrapping.
* `help_usage_margin`: sets margin for element usages in help string.
* `help_description`: sets margin for element descrptions in help string.
2018-04-08 16:00:42 +03:00
Peter Melnichenko
4f72bfeb8e
Add hidden
property, unlisting elements from usage and help
2018-04-07 22:09:18 +03:00
Peter Melnichenko
28604e8411
Rework usage message building and support arguments in mutexes
...
Ref #11 .
2018-03-18 23:28:01 +03:00
Peter Melnichenko
8d929db27c
Add a test for usage generation for vararg options and mutexes
2018-03-17 14:31:55 +03:00
mpeterv
0da90dc597
Print \n instead of \r\n
2015-03-13 15:12:06 +03:00
mpeterv
bd5fd00e6c
Custom target should not affect usage and help message generation
2014-08-25 13:51:08 +04:00
mpeterv
b02536d6ba
Fixed - being replaced with _ in custom targets
...
Default argname for options is now default target in brackets
2014-08-25 13:44:26 +04:00
mpeterv
b8766c8cdf
Improved usage message generation
...
Put options taking variable number of arguments after positional arguments
2014-08-21 15:24:54 +04:00
mpeterv
8c16eca398
Revert autoadding of <> to custom argnames
2014-08-06 13:33:50 +04:00
mpeterv
59603d5f39
Fixed exploded tests to work with busted 2.0
2014-08-01 17:44:15 +04:00
mpeterv
d1386c1d96
Add brackets to argname automatically
...
Updated aux files
2014-04-24 21:27:22 +04:00
mpeterv
7bf5777413
Added mutually exclusive groups
2014-03-09 14:28:55 +04:00
mpeterv
2d0faa258d
Argname can be an array
2014-03-08 16:04:40 +04:00
mpeterv
454ef54aa3
Removed :usage() hooks for arguments and options
2014-03-02 11:51:25 +04:00
mpeterv
f24cfe9627
Got rid of :prepare()
2014-03-02 02:03:44 +04:00
mpeterv
73467e2836
Fixed usage messages in subcommands corrupted after several usages
2014-03-01 16:41:14 +04:00
mpeterv
d601f54dce
Improved usage messages for default values
2014-03-01 14:43:20 +04:00
mpeterv
7994dded7e
Make command required by default
2014-02-23 16:27:23 +04:00
mpeterv
d9fc8728ca
Mark entire option as optional if there is default value
2014-02-20 12:52:24 +04:00
mpeterv
e99e047c4d
In usage message, mark arguments as optional if there is a default value
2014-02-20 12:41:27 +04:00
mpeterv
07af666206
Pad long usage messages
...
Long usage messages are split into lines. A margin is added so that they line up under "Usage: " part of the message.
2014-02-18 13:28:06 +04:00
mpeterv
ccad58ef50
return Parser as the module
2014-02-17 18:41:09 +04:00
mpeterv
404ec5213a
Added help message generation; Improved optional arguments handling.
2014-01-26 15:21:11 +04:00
mpeterv
09a35998c3
added another test for usage generation
2014-01-25 12:47:49 +04:00
mpeterv
ddcf1834f6
added info on recent additions to interface
2014-01-23 20:17:03 +04:00
mpeterv
ba095896ac
added some tests for usage generation
2014-01-21 23:09:12 +04:00