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