lib/cli++/ChangeLog
changeset 2 b3afb9f1e801
parent 0 6f7a81934006
equal deleted inserted replaced
1:30113bfbe723 2:b3afb9f1e801
       
     1 2001-03-07  Bruce Guenter  <bruce@bruce-guenter.dyndns.org>
       
     2 
       
     3 	* Renamed cli.h to cli++.h
       
     4 
       
     5 2000-10-25  Bruce Guenter  <bruce@bruce-guenter.dyndns.org>
       
     6 
       
     7 	* cli2pod.pl (parse_options): Ignore {0,} as well as {0}.
       
     8 
       
     9 2000-08-15  Bruce Guenter  <bruce@bruce-guenter.dyndns.org>
       
    10 
       
    11 	* cli2pod.pl: Replaced the CLI documentation programs with this
       
    12 	script which outputs POD, which can be translated to man pages or
       
    13 	HTML (or LaTeX, or text, or FM).
       
    14 
       
    15 2000-08-14  Bruce Guenter  <bruce@bruce-guenter.dyndns.org>
       
    16 
       
    17 	* cli_parse.pl (parse_header_line): Rewrote the parsing to deal
       
    18 	with multi-line strings.
       
    19 
       
    20 	* cli2man.pl (synopsis): Add usage string.
       
    21 
       
    22 	* cli2html.pl (synopsis): Add usage string.
       
    23 
       
    24 2000-08-12  Bruce Guenter  <bruce@bruce-guenter.dyndns.org>
       
    25 
       
    26 	* cli_parse.pl, cli2html.pl, cli2man.pl: Created these programs.
       
    27 
       
    28 2000-08-01  Bruce Guenter  <bruce@bruce-guenter.dyndns.org>
       
    29 
       
    30 	* main.cc (show_option): Fixed several width glitches.
       
    31 
       
    32 2000-07-18  Bruce Guenter  <bruce@bruce-guenter.dyndns.org>
       
    33 
       
    34 	* cli.h (struct cli_option): Added new uinteger type.
       
    35 
       
    36 	* main.cc (fill): Removed use of mystring.
       
    37 
       
    38 2000-07-13  Bruce Guenter  <bruce@bruce-guenter.dyndns.org>
       
    39 
       
    40 	* Removed include of mystring.
       
    41 
       
    42 2000-01-09  Bruce Guenter  <bruceg@daedalus.bfsmedia.com>
       
    43 
       
    44 	* main.cc (parse_short): Modified the logic here to treat a string
       
    45 	value immediately following a string option as the value for that
       
    46 	option rather than as more flags.  This makes it behave much more
       
    47 	like the standard getopt library.
       
    48 
       
    49 1999-09-30  Bruce Guenter  <bguenter@mikhail.qcc.sk.ca>
       
    50 
       
    51 	* main.cc (show_option): Changed stringlist option string from
       
    52 	"=LIST" to "=ITEM".
       
    53 
       
    54 1999-09-29  Bruce Guenter  <bguenter@mikhail.qcc.sk.ca>
       
    55 
       
    56 	* main.cc (cli_option::set): Fixed problem with setting a string
       
    57 	list option.
       
    58 
       
    59 1999-09-11  Bruce Guenter  <bguenter@mikhail.qcc.sk.ca>
       
    60 
       
    61 	* main.cc (show_help): Split off two parts of this routine into
       
    62 	calc_max_width and show_option.
       
    63 	(show_option): Add "=INT" for integer options, and don't add extra
       
    64 	space for non-value long options.
       
    65 	(set): Use strtol instead of atoi to parse the integer string, to
       
    66 	allow for error checking.
       
    67 	(show_option): Fixed handling of string lists.
       
    68 
       
    69 1999-08-14  Bruce Guenter  <bguenter@mikhail.qcc.sk.ca>
       
    70 
       
    71 	* main.cc (set_argv0): Sets argv0 to the complete value of
       
    72 	argv[0], argv0dir to the part of argv[0] up to and including the
       
    73 	last '/' (or blank if there is none), and argv0base to the
       
    74 	remainder of argv[0].  This is for use in programs that determine
       
    75 	what to do based on the value of the program name.
       
    76 
       
    77 1999-07-14  Bruce Guenter  <bguenter@mikhail.qcc.sk.ca>
       
    78 
       
    79 	* main.cc (parse_long_eq): Fixed to account for "counter" flag
       
    80 	type.
       
    81 	(parse_long_noeq): Fixed to account for "counter" flag type.
       
    82 	(parse_long_eq): set() will return one, but this shouldn't return
       
    83 	one, so subtract one from its result.
       
    84 	(show_help): Added a mechanism to display default values on a
       
    85 	second line.
       
    86 	(show_help): Output a blank line before the "--help" option line.
       
    87 
       
    88 1999-07-04  Bruce Guenter  <bguenter@mikhail.qcc.sk.ca>
       
    89 
       
    90 	* main.cc (show_help): Only show a "=VALUE" for string and integer
       
    91 	option types.
       
    92 
       
    93 1999-06-30  Bruce Guenter  <bguenter@mikhail.qcc.sk.ca>
       
    94 
       
    95 	* messages.cc (cli_error): Moved this routine into a separate
       
    96 	module, and added a "cli_warning" routine.
       
    97 
       
    98 1999-06-25  Bruce Guenter  <bguenter@mikhail.qcc.sk.ca>
       
    99 
       
   100 	* main.cc (set): Added handling for two new option types: string
       
   101 	list and counters.  A stringlist maintains a linked list of all
       
   102 	the given option arguments.  A counter adds the flag_value to the
       
   103 	dataptr each time it is encountered.
       
   104 	(parse_short): Fixed faulty logic regarding options with values.
       
   105 	Need to merge parts into cli_option::set().
       
   106 
       
   107 1999-06-24  Bruce Guenter  <bguenter@mikhail.qcc.sk.ca>
       
   108 
       
   109 	* main.cc: Rewrote the "help" option handling to stop it being a
       
   110 	special case, by making an internal option list that includes a
       
   111 	"help" option at the end of it.
       
   112 	(show_help): Cleaned up the option formatting to produce more
       
   113 	correct output.
       
   114 	(build_options): Removed the need to count the options.  Note
       
   115 	that this breaks compatibility with previous versions.
       
   116 	(cli_error): Added this convenience function for the CLI program
       
   117 	to report errors and optionally exit.
       
   118 	(set): Added functionality to call functions when an option is
       
   119 	parsed, and moved some of the option parsing into class methods
       
   120 	from the structure.
       
   121 	(main): Moved the test for showing the usage information before
       
   122 	the test for counting command-line arguments.
       
   123