blob: 09f92fea7960886abdb94871c25b50bdc4a75eb7 [file] [log] [blame]
kate.ward90fd99d2008-06-18 20:51:29 +00001Changes in shFlags 1.0.x
2========================
3
kate.wardc5210682009-03-30 18:54:36 +00004Changes with 1.0.3
5------------------
6
kate.ward812aeae2009-04-01 02:49:51 +00007MAJOR CHANGE! ``FLAGS_ARGC`` is now obsolete, and is replaced by
kate.ward39913d12009-04-01 14:09:23 +00008``FLAGS_ARGV``. See below for more info.
kate.wardc5210682009-03-30 18:54:36 +00009
10Fixed issue# 7 where long flags defined with '=' (e.g. --abc=123) made it
11impossible for the user to know how many non-flag command-line arguments were
kate.ward812aeae2009-04-01 02:49:51 +000012available because the value returned by ``FLAGS_ARGC`` was wrong. The
13``FLAGS_ARGC`` value is now obsolete, but will be maintained for backwards
14compatibility. The new method of getting the non-flag arguments is by executing
15``eval set -- "${FLAGS_ARGV}"`` after the **FLAGS** call. The arguments will
16then be available using the standard shell $#, $@, $*, $1, etc. variables.
kate.wardc5210682009-03-30 18:54:36 +000017
18Due to above fix for issue# 7, there is now proper support for mixing flags
19with non-flag arguments on the command-line. Previously, all non-flag arguments
20had to be at the end of the command-line.
21
kate.ward812aeae2009-04-01 02:49:51 +000022Renamed ``_flags_standardGetopt()`` and ``_flags_enhancedGetopt()`` functions to
23``_flags_getoptStandard()`` and ``_flags_getoptEnhanced()``.
kate.wardc5210682009-03-30 18:54:36 +000024
25Took out the setting and restoration of the '-u' shell flag to treat unset
26variables as an error. No point in having it in this library as it is verified
27in the unit tests, and provides basically no benefit.
28
kate.wardbda39172009-04-01 03:30:22 +000029Fixed bug under Solaris where the generated help was adding extra 'x'
30characters.
31
kate.ward39913d12009-04-01 14:09:23 +000032Added checks for reserved flag variables (e.g. FLAGS_TRUE).
33
kate.wardc5210682009-03-30 18:54:36 +000034
kate.ward4d8e0472008-07-18 11:52:56 +000035Changes with 1.0.2
36------------------
37
38FLAGS_PARENT no longer transforms into a constant so that it can be defined at
39run time in scripts.
40
kate.wardb7fa8d62008-08-28 21:18:21 +000041Added warning about short flags being unsupported when there are problems
kate.ward1469dda2008-11-17 17:56:43 +000042parsing the options with **getopt**.
kate.wardb7fa8d62008-08-28 21:18:21 +000043
kate.ward437639d2008-10-19 17:21:41 +000044Add default values to end of description strings.
45
46Fixed bug that returned an error instead of success when recalling the default
47values for empty strings.
48
kate.ward20d06782008-10-21 19:57:19 +000049Added warning when a duplicate flag definition is attempted.
50
kate.ward1469dda2008-11-17 17:56:43 +000051Improved ``assert[Warn|Error]Msg()`` test helper grepping.
kate.ward20d06782008-10-21 19:57:19 +000052
kate.ward2f3cad92008-10-21 23:29:23 +000053Replaced shell_versions.sh with a new versions library and created
kate.ward1469dda2008-11-17 17:56:43 +000054**gen_test_results.sh** to make releases easier.
kate.ward2f3cad92008-10-21 23:29:23 +000055
kate.wardd99166b2008-11-12 20:15:39 +000056Copied the coding standards from shUnit2, but haven't fully implemented them
57in shFlags yet.
58
kate.ward5b48fc12008-11-13 00:42:43 +000059Issue# 1: When a user defines their own --help flag, no more warning is thrown
60when FLAGS() is called stating that the help flag already defined.
61
62Issue# 2: Passing the --nohelp option no longer gives help output.
kate.wardabae05d2008-11-12 22:37:05 +000063
kate.ward1469dda2008-11-17 17:56:43 +000064Issue# 3: Added support for screen width detection.
kate.warddadc1642008-11-14 02:00:29 +000065
kate.ward4d8e0472008-07-18 11:52:56 +000066
kate.warddc10fe92008-07-10 19:37:16 +000067Changes with 1.0.1
68------------------
69
70Fixed bug where the help output added [no] to all flag names
71
kate.wardd3d3d082008-07-10 20:00:42 +000072Added additional example files that are referenced by the documentation.
73
kate.ward1d0ecc42008-07-11 15:33:23 +000074Improved zsh version and option checking.
75
76Upgraded shUnit2 to 2.1.4
77
78Added unit testing for the help output.
79
kate.wardf08c5b62008-07-11 20:32:11 +000080When including a library (e.g. shflags) in a script, zsh 3.0.8 doesn't actually
81execute the code in-line, but later. As such, variables that are defined in the
82library cannot be used until functions are called from the main code. This
83required the 'help' flag definition to be moved inside the FLAGS command.
84
kate.warddc10fe92008-07-10 19:37:16 +000085
kate.ward90fd99d2008-06-18 20:51:29 +000086Changes with 1.0.0
87------------------
88
89This is the first official release, so everything is new.
kate.wardabae05d2008-11-12 22:37:05 +000090
91
kate.ward1469dda2008-11-17 17:56:43 +000092.. vim:fileencoding=latin1:ft=rst:spell:tw=80
kate.wardabae05d2008-11-12 22:37:05 +000093.. $Id$