expose print_usage_text() as public method
[gitmo/MooseX-Getopt.git] / Changes
CommitLineData
5dac17c3 1Revision history for Perl extension MooseX-Getopt
eab3d04a 2
894a791c 3{{$NEXT}}
f62b3744 4 - documentation and tests amended to prefer usage of 'trait' over 'metaclass'
5 as much as possible
83446b78 6 - print_usage_text() exposed as a public method, to make it easier for
7 consuming classes to modify the behaviour when usage text is printed
09d1dcec 8
90.47 2012-08-30 16:37:59 PDT-0700
0aef9713 10 - re-release to remove double $VERSION declarations
42fc8ff6 11
120.46 2012-08-30 15:17:28 PDT-0700
8d396d8a 13 - -h is also treated as a --help option
17376605 14
150.45 2012-05-13 09:49:58 PDT-0700
395546ae 16 - use Path::Class in test to avoid test failures on MSWin32 with filename
17 construction
278175f8 18
190.44 2012-05-11 10:44:48 PDT-0700
0a386894 20 - now respecting value of configfile passed to the constructor, when used in
21 conjunction with MooseX::ConfigFromFile. (Karen Etheridge)
3c2e131f 22
230.43 2012-04-29 09:35:52 PDT-0700
abb6efc0 24 - re-release as non-trial.
1ebd1980 25
309e2fb7 260.42-TRIAL 2012-04-15 09:13:05 PDT-0700
44c73832 27 - reformatted the Changes file, with the help of CPAN::Changes, to something
28 a little more standard.
8582c924 29 - more release-only tests added
44c73832 30
309e2fb7 310.41-TRIAL 2012-04-14 18:36:00 PDT-0700
44c73832 32 - Now bails with exit status 0, rather than dying, when printing
b29aeb85 33 requested --usage/--help information (usage printed via invalid arguments
34 will still die, however). (Karen Etheridge)
44c73832 35
ab59e697 360.40 2012-04-13
44c73832 37 - Fix tests when MooseX::ConfigFromFile is installed, with
38 Getopt::Long::Descriptive >= 0.091. RT#76287
39 - Pod fix from debian. Salvatore Bonaccorso <carnil@debian.org> RT#74681
40 - Spelling fix from debian. Jonathan Yu <jawnsy@cpan.org> RT#74681
41
ab59e697 420.39 2012-02-03
44c73832 43 - Fix argument parsing in process_argv when used with ConfigFromFile so
44 that -v can be used as expected, rather than being grabbed as --version
45
ab59e697 460.38 2011-12-23
44c73832 47 - More documentation on Getopt::Long settings and how they alter this
48 role's behaviour, in particular with regards to extra_argv capturing.
49 (Karen Etheridge)
50
ab59e697 510.37 2011-03-30
44c73832 52 - Fix missing dependency. (RT#67077)
53
ab59e697 540.36 2011-03-29
44c73832 55 - Fix dist.ini 'Prereq' into 'Prereqs' (Damien Krotkine)
56 - MooseX::Getopt::GLD
57 - change it to a MooseX::Role::Parameterized, so that it accepts
58 'getopt_conf' parameter (Damien Krotkine)
59
ab59e697 600.35 2011-02-09
44c73832 61 - Fix missed change from Test::Exception to Test::Fatal
62
ab59e697 630.34 2011-02-08
44c73832 64 - The test suite now uses Test::Fatal instead of Test::Exception. (Karen
65 Etheridge)
66 - Move most of new_with_options logic into separate publically accessible
67 process_argv method, so that arg processing can be done without actually
68 creating object (Jonathan Swartz)
69
ab59e697 700.33 2010-08-26
44c73832 71 - Remove Test::Most from newly added test (RT#60766)
72
ab59e697 730.32 2010-08-26
44c73832 74 - Fix handling of Union types (RT#58417)
75
ab59e697 760.31 2010-07-07
44c73832 77 - Fix issue causing tests to fail if MooseX::SimpleConfig isn't installed.
78
ab59e697 790.30 2010-07-06
44c73832 80 - MooseX::Getopt::Basic
81 - uses attribute insertion order when determining the order in which
82 options are documented in the usage (e.g. in $obj->usage->text). (Karen
83 Etheridge)
84
85 - MooseX::Getopt::Basic
86 - store the usage object to the usage attr (RT#58715)
87 - properly checks whether the *option* --help, --usage, or --? were used,
88 rather than the attribute 'help', 'usage' or '?' were set
89 - MooseX::Getopt::GLD
90 - add the usage attribute for storing the Getopt::Long::Descriptive::Usage
91 object, and the help attribute for storing --help, --usage and --? state
92 (RT#47865, RT#56783, RT#52474). (Karen Etheridge)
93
94 - MooseX::Getopt::Basic
95 - Disable auto_help config in Getopt::Long, to avoid calling into pod2usage
96 when the --help option is used while MooseX::ConfigFromFile is in use
97 (the intent is just to fetch the value of the configfile option)
98 (RT#57683). (Karen Etheridge)
99
1000.29 2010-06-15
101 - Fix repository metadata. Thanks Robert Bohne for noticing!
102
1030.28 2010-06-05
104 - MooseX::Getopt::Strict
105 - Make it work with Getopt attribute traits in addition to attribute
106 metaclasses.
107 - Switch from Module::Install to Dist::Zilla.
108
1090.27 2010-02-10
110 - Makefile.PL
111 - Bump dependency to Getopt::Long::Descriptive to 0.081 in an attempt to
112 avoid test failures.
113 - MooseX::Getopt::Dashes
114 - Document that using a cmd_flag argument to attributes can be used to
115 override the tr/_/-/ replacement ::Dashes does on attribute names
116
1170.26 2009-12-10
118 - MooseX::Getopt::Basic
119 - Fix bug with attribute names containing upper case letters.
120 - Test suite
121 - Add t/106_no_ignore_case.t for testing the compatibility with
122 no_ignore_case
123
1240.25 2009-11-26
125 - MooseX::Getopt
2860acac 126 - Split out the warnings and the exception from Getopt so that they can be
127 overridden.
44c73832 128 - Split out calling ->die on Getopt::Long::Descriptive::Usage so that it can
129 be overridden.
9b7f80a2 130 - Properly split roles as promised in 0.22.
dfad990c 131
44c73832 1320.24 2009-10-23
133 - MooseX::Getopt
134 - Fix bug with mixed case attribute names (MAROS)
135
1360.23 2009-10-02
137 - MooseX::Getopt
138 - Allow the config file to return a code ref which is called to return the
139 config file location (Gordon Irving)
140
ab59e697 1410.22 2009-09-05
44c73832 142 - Require GLD 0.077 for RT#49427 as some versions are broken
143 - MooseX::Getopt
144 - Split into MooseX::Getopt::Basic (without the G::L::Descriptive support)
145 and MooseX::Getopt::GLD.
146 - Tests
147 - Ensure author tests get run when in author mode.
148
1490.21 2009-08-27
150 - MooseX::Getopt
151 - Enable and document the argv parameter to the constructor.
152 - Applied patches in RT43200 and RT43255
153 - Applied patch from RT#47766 to not die if SimpleConfig cannot find the
154 default config file name.
155
ab59e697 1560.20 2009-07-09
44c73832 157 - fix MANIFEST.SKIP to avoid double-packaging
158
ab59e697 1590.19 2009-07-08
44c73832 160 - MooseX::Getopt
161 - Fix Getopt config spec for --configfile (t0m)
162 - Add support for --usage/--help/--? (drew@drewtaylor.com)
163 - Fix new_with_options to accept a hashref (DOUGDUDE@cpan.org)
164 - Tests
165 - Fix warning from tests with new Moose (t0m)
166 - Fix tests on Win32 from RT#44909 (taro-nishino)
167
ab59e697 1680.18 2009-04-09
44c73832 169 - MooseX::Getopt::Dashes
170 - New module, for converting undercores to dashes (ilmari)
171
ab59e697 1720.17 2009-04-08
44c73832 173 - MooseX::Getopt
174 - work with latest Moose (hdp)
175 - unify module version numbers with dist version (hdp)
176
ab59e697 1770.16 2009-02-17
44c73832 178 - Tests
179 - run pod tests only if RELEASE_TESTING env var is set
180
ab59e697 1810.15 2008-07-26
44c73832 182 - MooseX::Getopt::OptionTypeMap
183 - Accept type constraint objects in the type mapping, not just names
184
ab59e697 1850.14 2008-07-10
44c73832 186 - MooseX::Getopt::OptionTypeMap
187 - Change 'Float' which doesn't exist to 'Num' which does (perigrin)
188 - MooseX::Getopt
189 - removed the default handling with Getopt::Long::Descriptive as it would
190 override constructor parameters and that was bad. Besides, Moose will
191 just DWIM on this anyway. (stevan)
192 - added test for it (stevan)
193 - Tests
194 - fixed Getopt::Long::Descriptive specific tests to only run if
195 Getopt::Long::Descriptive is there (stevan)
196
ab59e697 1970.13 2008-05-24
44c73832 198 - MooseX::Getopt
199 - Commandline option shouldn't be required in the case that the given
200 "required" attribute has been loaded from config (MooseX::ConfigFromFile)
201 - Support for MooseX::ConfigFromFile shouldn't require that role be added
202 at the same level as Getopt.
203 - fixed miscapitalization of NoGetopt in the docs
204 - added links to the traits in the docs
205 - converted to Module::Install instead of Module::Build
206
ab59e697 2070.12 2008-03-14
44c73832 208 - updated copyright dates
209 - upped the Moose dependency to support the custom metaclass traits
210 - added Getopt::Long::Descriptive as an optional dependency
211 - MooseX::Getopt MooseX::Getopt::Meta::Attribute
212 MooseX::Getopt::Meta::Attribute::Trait
213 MooseX::Getopt::Meta::Attribute::NoGetopt
214 MooseX::Getopt::Meta::Attribute::Trait::NoGetopt
215 - added support for custom metaclass traits
216 - added tests for this
217
ab59e697 2180.11 2008-01-27
44c73832 219 - MooseX::Getopt
220 - Commandline option shouldn't be required in the case that the given
221 "required" attribute has a default or a builder method.
222
ab59e697 2230.10 2008-01-23
44c73832 224 - MooseX::Getopt
225 - Support default configfile attribute when used with
226 MooseX::ConfigFromFile-based roles
227
ab59e697 2280.09 2008-01-22
44c73832 229 - MooseX::Getopt
230 - Use Getopt::Long::Descriptive if it's available
231
ab59e697 2320.08 2007-12-08
44c73832 233 - MooseX::Getopt
234 - Added support for configfile loading via MooseX::ConfigFromFile-based
235 roles with the -configfile commandline option.
236
ab59e697 2370.07 2007-12-04
44c73832 238 - MooseX::Getopt::Meta::Attribute::NoGetopt
239 - fixed miscapitalization of NoGetopt in the docs
240
ab59e697 2410.06 2007-11-23
44c73832 242 - MooseX::Getopt
243 - refactored &new_with_option some so that this will work better with other
244 Getopt modules (nuffin)
245 - MooseX::Getopt::Strict
246 - version of MooseX::Getopt which requires you to specify which attributes
247 you want processed explicity
248 - added tests for this
249 - MooseX::Getopt::Meta::Attribute::NoGetopt
250 - a custom meta-attribute which can be used to specify that an attribute
251 should not be processed
252 - added tests for this
253
ab59e697 2540.05 2007-07-03
44c73832 255 - MooseX::Getopt::OptionTypeMap
256 - added some checks to make sure that the type constraints are found
257 properly and to give better diagnostics
258
ab59e697 2590.04 2007-06-26
44c73832 260 - MooseX::Getopt::OptionTypeMap
261 - Added support for subtype constraint inference from parent types
262 - added tests and docs for this
263 - MooseX::Getopt
264 - Added extra_argv attribute
265 - added tests and docs for this
266 - We now unmangle the Getopt::Long-mangled @ARGV
267 - added tests and docs for this
268 - We now throw an exception from new_with_options if Getopt fails due to
269 bad arguments.
270 - added tests and docs for this
271
ab59e697 2720.03 2007-05-02
44c73832 273 - downgraded the Getopt version requirement to 2.35 as per RT #26844
274 - adding blblack to the authors list
275 - MooseX::Getopt
276 - doc update to show simple way to of excluding an attribute, but not
277 having accessors with underscores (thanks to Zaba on #moose for this)
278 - MooseX::Getopt::Meta::Attribute
279 - tightening up the type constraint in the cmd_alias coercion to only
280 accept strings
281
ab59e697 2820.02 2007-04-06
44c73832 283 - MooseX::Getopt
284 - added the ARGV attribute (thanks to blblack)
285 - added tests and docs for this
286 - MooseX::Getopt::Meta::Attribute
287 - added the cmd_aliases attribute (thanks to blblack)
288 - added tests and docs for this
289 - added support for Moose 0.19's custom attribute metaclass alias registry.
290 - added tests and docs for this
291
ab59e697 2920.01 2007-03-09
44c73832 293 - module released to CPAN