PicoOptionParser class of PicoRuby

Type aliases

opt_type

:string | :integer | :symbol | :boolean

Singleton methods

new

PicoOptionParser.new() -> void

Instance methods

flag

instance.flag(*String names, ?default: untyped, ?desc: String?, ?help: bool, ?key: Symbol?) -> void

on

instance.on(*String names, ?type: opt_type, ?choices: Array[untyped]?, ?default: untyped, ?desc: String?, ?key: Symbol?) -> void

parse

instance.parse(Array[String] args) -> (Result | Symbol)

usage

instance.usage(String program) -> String
Tags: class