blob: 70e229fe11c3e157514ec5011fe2b449277db462 [file] [log] [blame]
kate.ward90fd99d2008-06-18 20:51:29 +00001Changes in shFlags 1.0.x
2========================
3
kate.ward9a183b82010-03-18 00:25:34 +00004Changes with 1.0.4
5------------------
6
kate.ward1cb79602011-06-10 11:15:49 +00007Fixed issue #10. Usage of ``expr`` under FreeBSD 7.2 (FreeNAS 0.7.1) and FreeBSD
kate.ward929261f2010-03-28 23:12:17 +000088.0 that was causing many unit tests to fail.
9
10Fixed issue where booleans were sometimes mis-configured to require additional
11values like other flags.
kate.ward9a183b82010-03-18 00:25:34 +000012
kate.ward1cb79602011-06-10 11:15:49 +000013Changed _flags_fatal() to exit with FLAGS_ERROR immediately.
14
15Fixed issue #11. When help is requested, the help flag is no longer prefixed
16with [no].
17
18Upgraded shUnit2 to 2.1.6.
19
20Fixed issue #12. Requesting help shouldn't be considered an error.
21
22Added the ability to override the use of the OS default 'getopt' command by
23defining the FLAGS_GETOPT_CMD variable.
24
kate.warde7ed70c2011-06-10 11:45:17 +000025Updated gen_test_results.sh and versions from shUnit2 source.
26
kate.wardda8d2c02011-06-28 13:26:02 +000027Fixed issues# 13, 14. Added support for dashes ('-') in long flag names. The
28defined flag will still be declared with underscores ('_') due to shell
29limitations, so only one of a dashed flag name or an underscored flag name are
30allowed, not both.
kate.ward9a183b82010-03-18 00:25:34 +000031
kate.wardc5210682009-03-30 18:54:36 +000032Changes with 1.0.3
33------------------
34
kate.ward812aeae2009-04-01 02:49:51 +000035MAJOR CHANGE! ``FLAGS_ARGC`` is now obsolete, and is replaced by
kate.ward39913d12009-04-01 14:09:23 +000036``FLAGS_ARGV``. See below for more info.
kate.wardc5210682009-03-30 18:54:36 +000037
38Fixed issue# 7 where long flags defined with '=' (e.g. --abc=123) made it
39impossible for the user to know how many non-flag command-line arguments were
kate.ward812aeae2009-04-01 02:49:51 +000040available because the value returned by ``FLAGS_ARGC`` was wrong. The
41``FLAGS_ARGC`` value is now obsolete, but will be maintained for backwards
42compatibility. The new method of getting the non-flag arguments is by executing
43``eval set -- "${FLAGS_ARGV}"`` after the **FLAGS** call. The arguments will
44then be available using the standard shell $#, $@, $*, $1, etc. variables.
kate.wardc5210682009-03-30 18:54:36 +000045
46Due to above fix for issue# 7, there is now proper support for mixing flags
47with non-flag arguments on the command-line. Previously, all non-flag arguments
48had to be at the end of the command-line.
49
kate.ward812aeae2009-04-01 02:49:51 +000050Renamed ``_flags_standardGetopt()`` and ``_flags_enhancedGetopt()`` functions to
51``_flags_getoptStandard()`` and ``_flags_getoptEnhanced()``.
kate.wardc5210682009-03-30 18:54:36 +000052
53Took out the setting and restoration of the '-u' shell flag to treat unset
54variables as an error. No point in having it in this library as it is verified
55in the unit tests, and provides basically no benefit.
56
kate.wardbda39172009-04-01 03:30:22 +000057Fixed bug under Solaris where the generated help was adding extra 'x'
58characters.
59
kate.ward39913d12009-04-01 14:09:23 +000060Added checks for reserved flag variables (e.g. FLAGS_TRUE).
61
kate.ward4fdd0c82009-04-24 00:12:43 +000062Fixed some unset variable bugs.
63
64Now report the actual getopt error if there is one.
65
66All tests now properly enable skipping based on whether a standard or enhanced
67getopt is found.
68
kate.ward300c36b2009-04-25 12:19:31 +000069Added the OS version to OS release for Solaris.
70
kate.wardcecd7bd2009-05-10 17:56:13 +000071Fixed flags_reset() so it unsets the default value environment vars.
72
kate.wardc5210682009-03-30 18:54:36 +000073
kate.ward4d8e0472008-07-18 11:52:56 +000074Changes with 1.0.2
75------------------
76
77FLAGS_PARENT no longer transforms into a constant so that it can be defined at
78run time in scripts.
79
kate.wardb7fa8d62008-08-28 21:18:21 +000080Added warning about short flags being unsupported when there are problems
kate.ward1469dda2008-11-17 17:56:43 +000081parsing the options with **getopt**.
kate.wardb7fa8d62008-08-28 21:18:21 +000082
kate.ward437639d2008-10-19 17:21:41 +000083Add default values to end of description strings.
84
85Fixed bug that returned an error instead of success when recalling the default
86values for empty strings.
87
kate.ward20d06782008-10-21 19:57:19 +000088Added warning when a duplicate flag definition is attempted.
89
kate.ward1469dda2008-11-17 17:56:43 +000090Improved ``assert[Warn|Error]Msg()`` test helper grepping.
kate.ward20d06782008-10-21 19:57:19 +000091
kate.ward2f3cad92008-10-21 23:29:23 +000092Replaced shell_versions.sh with a new versions library and created
kate.ward1469dda2008-11-17 17:56:43 +000093**gen_test_results.sh** to make releases easier.
kate.ward2f3cad92008-10-21 23:29:23 +000094
kate.wardd99166b2008-11-12 20:15:39 +000095Copied the coding standards from shUnit2, but haven't fully implemented them
96in shFlags yet.
97
kate.ward5b48fc12008-11-13 00:42:43 +000098Issue# 1: When a user defines their own --help flag, no more warning is thrown
99when FLAGS() is called stating that the help flag already defined.
100
101Issue# 2: Passing the --nohelp option no longer gives help output.
kate.wardabae05d2008-11-12 22:37:05 +0000102
kate.ward1469dda2008-11-17 17:56:43 +0000103Issue# 3: Added support for screen width detection.
kate.warddadc1642008-11-14 02:00:29 +0000104
kate.ward4d8e0472008-07-18 11:52:56 +0000105
kate.warddc10fe92008-07-10 19:37:16 +0000106Changes with 1.0.1
107------------------
108
109Fixed bug where the help output added [no] to all flag names
110
kate.wardd3d3d082008-07-10 20:00:42 +0000111Added additional example files that are referenced by the documentation.
112
kate.ward1d0ecc42008-07-11 15:33:23 +0000113Improved zsh version and option checking.
114
115Upgraded shUnit2 to 2.1.4
116
117Added unit testing for the help output.
118
kate.wardf08c5b62008-07-11 20:32:11 +0000119When including a library (e.g. shflags) in a script, zsh 3.0.8 doesn't actually
120execute the code in-line, but later. As such, variables that are defined in the
121library cannot be used until functions are called from the main code. This
122required the 'help' flag definition to be moved inside the FLAGS command.
123
kate.warddc10fe92008-07-10 19:37:16 +0000124
kate.ward90fd99d2008-06-18 20:51:29 +0000125Changes with 1.0.0
126------------------
127
128This is the first official release, so everything is new.
kate.wardabae05d2008-11-12 22:37:05 +0000129
130
kate.ward1469dda2008-11-17 17:56:43 +0000131.. vim:fileencoding=latin1:ft=rst:spell:tw=80
kate.wardabae05d2008-11-12 22:37:05 +0000132.. $Id$