NAME
CLI::Gwrap::Opt.pm - a single CLI option item for CLI::Gwrap
VERSION
version 0.026
DESCRIPTION
CLI::Gwrap::Opt encapsulates individual options for CLI::Gwrap.
ATTRIBUTES
- type => 'string' A string naming the type of option (check, radio, string, etc).
- name => 'string' This is the name of the option as used on the command line. When this option is set, the defaultjoiner is also determined, unless the joiner has already been set.
- description' => (is => 'ro', isa => Str); A short, (possibly) more useful description of the option.
- state => 'string' Initial state of the option.
- label => 'string' Overrides the normal name/description rules for the option label in the GUI.
- choices => [ 'choices' ] Reference to an array of the choices for a radio option.
- width => number The number of pixels for input widgets for which a width might make sense (string, integer, etc)
- joiner => 'string' How to join the option name to the opion value. Default for short (single-letter) options is a space, and for long options is an equals sign.
- widget => object Used by the GUI wrapper to store a pointer to the widget for this option.
- retriever => coderef Used by the GUI wrapper to store a reference to a subroutine that can read back the value of the option widget.
SEE ALSO CLI::Gwrap
AUTHOR
Reid Augustin <reid@hellosix.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Reid Augustin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.