NAME
Test::Smoke::App::AppOptionCollection - A collection of AppOption objects.
DESCRIPTION
Test::Smoke::App::AppOptionCollection->new()
Arguments
An optional list of Test::Smoke::App::AppOption objects.
Returns
An instatiated object.
Exceptions
None.
$collection->add(@arguments)
Add the Getopt::Long option and default to the collection. Also add the Test::Smoke::App::AppOption-show_helptext()> to the running helptext variable.
Arguments
A list of Test::Smoke::AppOption objects.
Returns
The object.
Exceptions
None.
$collection->add_helptext($string)
Adds a string to the currently build up helptext variable.
$collection->options_with_default()
Arguments
None
Returns
A hasref to a struct with only the defaults set from object construction.
$collection->options_for_cli()
Arguments
None
Returns
A hashref with options that have a CODEref as default.
Exceptions
None
$collection->all_options()
Arguments
None.
Returns
A hashref with all options and theire coded default.
Exceptions
None.
COPYRIGHT
(c) 2002-2013, Abe Timmerman <abeltje@cpan.org> All rights reserved.
With contributions from Jarkko Hietaniemi, Merijn Brand, Campo Weijerman, Alan Burlison, Allen Smith, Alain Barbet, Dominic Dunlop, Rich Rauenzahn, David Cantrell.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See:
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.