lua:arguments
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| lua:arguments [2015/02/05 08:28] – vodur | lua:arguments [2017/02/20 06:28] (current) – vodur | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | arguments( arg_str ) | + | arguments( arg_str  | 
| - | Splits arg_str into sub arguments and returns the arguments as a table. | + | Return type: array of string | 
| + | |||
| + | Splits arg_str into sub arguments and returns the arguments as a table. Optional 2nd argument is a boolean value specifying whether the case of arguments are preserved. The default is false, meaning all arguments will be converted to lowercase in the returned  | ||
| White space are considered argument boundaries except when single quotes are used. See example below. | White space are considered argument boundaries except when single quotes are used. See example below. | ||
| Line 9: | Line 11: | ||
| tprint(args) | tprint(args) | ||
| </ | </ | ||
| + | |||
| < | < | ||
| You say ' | You say ' | ||
| Line 15: | Line 18: | ||
| 4=" | 4=" | ||
| </ | </ | ||
| + | |||
lua/arguments.1423124902.txt.gz · Last modified: 2015/02/05 08:28 by vodur