Command contains all of the information describing a command with its spec and effective options and arguments, ready to use.
class box Command
new ref _create( spec': CommandSpec box, fullname': String val, options': HashMap[String val, Option val, HashEq[String val] val] box, args': HashMap[String val, Arg val, HashEq[String val] val] box) : Command ref^
Returns a representational string for this command.
fun box string() : String iso^
Returns the spec for this command.
fun box spec() : CommandSpec box
Returns the full name of this command, with its parents prefixed.
fun box fullname() : String val
Returns the Option by name, defaulting to a fake Option if unknown.
fun box option( name: String val) : Option val
Returns the Arg by name, defaulting to a fake Arg if unknown.
fun box arg( name: String val) : Arg val
© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/cli-Command