Age | Commit message (Collapse) | Author |
|
Free clusters.
(argp_args_usage, argp_doc):
Use the new type of argp child vector.
(hol_entry_cmp, group_cmp, hol_cluster_cmp, hol_cluster_base, hol_add_cluster):
New functions.
(hol_entry_help):
Add gunk to print cluster headers.
(argp_hol):
Add, and use the new CLUSTER argument.
Use the new type of argp child vector, and make clusters.
(hol_append):
Deal with clusters.
Always use hol_free to free MORE, and just mark it's entries as invalid if
we steal them.
(make_hol):
Accept new CLUSTER argument, and fill in the corresponding entry fields with
it.
(hol_sort):
Use hol_entry_cmp.
(hol_entry_help: comma):
Only print cluster headers for real clusters.
Emit a newline after cluster headers.
(argp_help):
Pass new CLUSTER argument to argp_hol.
|
|
Print documentation only according to the ARGP_HELP_*_DOC bits in FLAGS.
Possibly print bug report address if ARGP_HELP_BUG_ADDR is set.
Replace FIRST by ANYTHING (sense inverted).
|
|
(argp_help): Supply new args to argp_doc, and additional call before arg help.
Add note about --usage to `Try...' msg.
|
|
|
|
Allocate enough space in SHORT_NO_ARG_OPTS for the '\0' terminator.
|
|
so that it won't get indented.
|
|
|
|
|
|
|
|
(argp_error): Use STATE->err_stream instead of STDERR.
(argp_state_help): Supply NAME argument to argp_help.
(argp_failure): New function.
(indent_to): Terminate.
|
|
Prefix each option desc with a space.
Do manual wrapping of descs with an embedded space.
Don't set wrap margin (done elsewhere now).
(argp_args_usage): Do manual line wrapping because of embedded spaces.
(argp_help): Set wrap & left margins when printing usage.
|
|
|
|
(argp_help): Don't shadow arg; change parm STREAM to be STREAMARG and
adjust initialization of STREAM variable to use the renamed parm.
|
|
Use stdio streams and line_wrap_ functions instead of line_ functions.
(indent_to): New function.
(argp_usage_arg): Function removed.
<linewrap.h>: New include.
<line.h>: Include removed.
|
|
(argp_error): Take an argp_state instead of an argp, and only doing anything
if ARGP_NO_ERRS isn't set in it.
(argp_state_help): New function.
(argp_help): Don't interpret exiting options anymore.
|
|
|
|
|
|
hol_entry_first_short, hol_entry_first_long, hol_find_entry, hol_sort,
hol_entry_help, argp_hol, argp_args_usage, argp_doc, argp_help, argp_error):
Add `const' where appropriate.
|
|
Correctly print group headers, and precede them with a blank line.
(struct hol_entry, make_hol, hol_sort, hol_set_group):
Rename the `set_class' field to be `group'.
(hol_help, hol_entry_help):
After a group header has been printed, separate subsequent groups with a
blank line.
(hol_set_group): Renamed from hol_set_sort_class.
(argp_help): Use hol_set_group instead of hol_set_sort_class.
|
|
Use the new GROUP field in struct argp_option to initialize sort_classes.
(HEADER_COL): New macro.
(hol_entry_help): Deal with group headers.
|
|
|
|
(hol_entry_help): Print the right documentation string for each entry.
(argp_help): Renamed from argp_usage.
(make_hol): Deal with a null value of OPT. If there are no entries, don't
define the ENTRIES or SHORT_OPTIONS fields.
(hol_free): Don't free ENTRIES or SHORT_OPTIONS unless there are any.
(hol_sort): Don't sort unless there are some entries.
(hol_usage): Don't do anything unless there are some entries.
(hol_sort): Sort int he correct order.
(hol_append): Implement.
(argp_help): Add the ARGP_HELP_SHORT_USAGE case.
|
|
|