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