aboutsummaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/argp-help.c
Commit message (Collapse)AuthorAgeFilesLines
* (argp_help): Set the lmargin after printing the start of the usage message,Miles Bader1996-07-161-1/+6
| | | | so that it won't get indented.
* (argp_help): "OPTIONS..." -> "OPTION...".Miles Bader1996-07-101-1/+1
|
* (argp_failure): If FMT is 0, don't print `: MSG'.Miles Bader1996-06-191-7/+11
|
* (argp_help, argp_state_help, argp_error, argp_failure): Handle null streams.Miles Bader1996-06-171-26/+37
|
* (argp_help): Add and use NAME argument.Miles Bader1996-06-171-13/+54
| | | | | | | (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.
* (hol_usage):Miles Bader1996-05-231-11/+33
| | | | | | | | 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): Just assign STREAM instead of using 2 vars.Miles Bader1996-05-091-2/+2
|
* (argp_args_usage): add_usage_item -> fprintf.Michael I. Bushnell1996-05-091-3/+3
| | | | | (argp_help): Don't shadow arg; change parm STREAM to be STREAMARG and adjust initialization of STREAM variable to use the renamed parm.
* (hol_entry_help, hol_help, hol_usage, argp_args_usage, argp_doc, argp_help):Miles Bader1996-05-081-88/+84
| | | | | | | | 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_doc, argp_args_usage, argp_hol): Rename PARENTS field to CHILDREN.Miles Bader1996-03-191-32/+47
| | | | | | | (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_help): Don't print extraneous blank lines.Miles Bader1996-03-021-1/+2
|
* (hol_entry_help): Handle null group headers nicely.Miles Bader1996-02-281-3/+3
|
* (struct hol_entry, make_hol, hol_entry_short_iterate, hol_entry_long_iterate,Miles Bader1996-02-051-33/+38
| | | | | | 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.
* (hol_entry_help):Miles Bader1996-01-231-25/+49
| | | | | | | | | | | 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.
* (make_hol):Miles Bader1995-12-211-7/+17
| | | | | | Use the new GROUP field in struct argp_option to initialize sort_classes. (HEADER_COL): New macro. (hol_entry_help): Deal with group headers.
* (argp_error): New function.Miles Bader1995-10-201-0/+22
|
* (hol_find_entry): Don't increment ENTRY prematurely.Miles Bader1995-10-111-103/+199
| | | | | | | | | | | | | (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.
* Initial revisionMiles Bader1995-10-101-0/+654