Cannot be used when the workflow was called from the workflow selection menu.
Functions
parse
parse() -> bool, string
bool
- If the results are valid.string
- A string of the error if on occured.
called
called() -> bool
bool
- If the workflow was called directly from the command-line.
options
options() -> struct<cmd.Options>
Creates a table for passing options into arguments.
struct<cmd.Options>
arg_flag
arg_flag(short, long, options?) -> int<ref.BOOL>
- short
string
- long
string
- options
struct<cmd.Options>
int<ref.BOOL>
arg_flag_count
arg_flag_count(short, long, options?) -> int<ref.INT>
- short
string
- long
string
- options
struct<cmd.Options>
int<ref.INT>
arg_string
arg_string(short, long, options?) -> int<ref.STRING>
- short
string
- long
string
- options
struct<cmd.Options>
int<ref.STRING>
arg_string_list
arg_string_list(short, long, options?) -> int<[]ref.STRING>
- short
string
- long
string
- options
struct<cmd.Options>
int<[]ref.STRING>
arg_string_pos
arg_string_pos(options?) -> int<ref.STRING>
- options
struct<cmd.Options>
int<ref.STRING>
arg_int
arg_int(short, long, options?) -> int<ref.INT>
- short
string
- long
string
- options
struct<cmd.Options>
int<ref.INT>
arg_int_list
arg_int_list(short, long, options?) -> int<[]ref.INT>
- short
string
- long
string
- options
struct<cmd.Options>
int<[]ref.INT>
arg_int_pos
arg_int_pos(options?) -> int<ref.INT>
- options
struct<cmd.Options>
int<ref.INT>
arg_float
arg_float(short, long, options?) -> int<ref.FLOAT>
- short
string
- long
string
- options
struct<cmd.Options>
int<ref.FLOAT>
arg_float_list
arg_float_list(short, long, options?) -> int<[]ref.FLOAT>
- short
string
- long
string
- options
struct<cmd.Options>
int<[]ref.FLOAT>
arg_float_pos
arg_float_pos(options?) -> int<[]ref.FLOAT>
- options
struct<cmd.Options>
int<[]ref.FLOAT>
arg_selector
arg_selector(short, long, choices, options?) -> int<ref.STRING>
- short
string
- long
string
- choices
[]string
- options
struct<cmd.Options>
int<ref.STRING>
arg_selector_pos
arg_selector_pos(choices, options?) -> int<ref.STRING>
- choices
[]string
- options
struct<cmd.Options>
int<ref.STRING>
Constants
DefaultType
DEFAULT_INT
DEFAULT_FLOAT
DEFAULT_STRING
DEFAULT_BOOL
Structs
Options
required
required(bool) -> self
validate
validate({function([]string) -> string}) -> self
Takes in all values for the argument, and returns an error if there was one. Use an empty string for when there is no error.
default
default(any, int<cmd.DefaultType>) -> self
The first value should match the default type given.