getopt
Documentation for the shell-getopt api in /obj/secure/shell/getopt.c.
Functions
-
mixed getopt(mixed args, string options)
Takes an array and parses flags from it. Returns an array, the first element being a mapping of flag : value, the second element being an array of the remaining args, all flag information removed. The second argument should be a string of single character flags that the command accepts, followed by a colon (:) if the flag can take an argument.
-
mixed *argument_explode(string s)
assumes the arg passed is the argument to some unix-like command where ares are space seperated unless enclosed in non-escaped quotes. Returns an array of the arguments. and an *of implode info
-
mixed parse_argument(string input, string options)
calls argument_explode() and then getopt(), returning the value of the getopt() call.
File generated by Lima 1.1a4 reStructured Text daemon.