<option> Add an option to a command

name
option
xml namespace
http://moyaproject.com

Defines an option for a <command>. Options may be added to the command line when a command is invoked. The following is an example of how an option is used:

$ moya testapp#cmd.optiontest --hobbit="bilbo"

An <option> tag must appear within a <signature> tag.

Example

<option name="hobbit" metavar="HOBBIT NAME" help="Your favorite hobbit" />
attributes
name purpose type required? default choices
action Action text No
default Default text No
help Argument help text text No
metavar Argument metavar text No
name Argument name text No
nargs Number of arguments text No "?"
type Type of argument text No "string" file
float
integer
string