Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
bargs
v1.0.0
Bargs
CLI
Command
Flag
ProcessedFlag
ProcessedInput
Processor
Utils
Built with Crystal 1.9.2
2023-10-08 07:41:38 UTC
class
Bargs::Flag
Bargs::Flag
Reference
Object
Defined in:
bargs/flag.cr
Constructors
.new
(name : String, accepts_arg : Bool =
false
)
Instance Method Summary
#accepts_arg
: Bool
#accepts_arg=
(accepts_arg : Bool)
#name
: String
#short
: String?
#short=
(short : Nil | String)
Constructor Detail
def self.
new
(name : String, accepts_arg : Bool =
false
)
#
[
View source
]
Instance Method Detail
def
accepts_arg
: Bool
#
[
View source
]
def
accepts_arg=
(accepts_arg : Bool)
#
[
View source
]
def
name
: String
#
[
View source
]
def
short
: String?
#
[
View source
]
def
short=
(short : Nil | String)
#
[
View source
]