opts :: OptionString
String
as parameteropts :: OptionString :: defaultinit
Init a new OptionString with ahelp
message and names
.
opts $ OptionString :: SELF
Type of this instance, automatically specialized in every classopts :: OptionParameter :: _parameter_mandatory
Is the parameter mandatory?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
opts :: Option :: default_value=
Default value of this optionopts :: OptionParameter :: defaultinit
opts :: OptionString :: defaultinit
Init a new OptionString with ahelp
message and names
.
core :: Object :: defaultinit
opts :: Option :: defaultinit
Create a new optioncore :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).opts :: OptionParameter :: parameter_mandatory
Is the parameter mandatory?opts :: OptionParameter :: parameter_mandatory=
Is the parameter mandatory?opts :: Option :: read_param
Consume parameters for this option
# An option with a `String` as parameter
class OptionString
super OptionParameter
redef type VALUE: nullable String
# Init a new OptionString with a `help` message and `names`.
init(help: String, names: String...) is old_style_init do super(help, null, names)
redef fun convert(str) do return str
end
lib/opts/opts.nit:178,1--187,3