class

Optimist::FileOpt

Inherits Optimist::Option < Reference < Object

Option class for handling IO objects and URLs. Note that this will return the file-handle, not the file-name in the case of file-paths given to it.

Constructors

new(name, desc, default : IO | Nil, **kwargs)
Source

Instance methods

add_argument_value(paramlist : Array(String), _neg_given)
Source
default
Source
type_format

Provide type-format string. Default to empty, but should probably be overridden for most subclasses.

Source
value
Source
value=(value : IO::FileDescriptor | Nil)
Source