pike.git / lib / modules / Getopt.pmod

version» Context lines:

pike.git/lib/modules/Getopt.pmod:108:   //!   string|int(0..1) find_option(array(string) argv,    array(string)|string shortform,    array(string)|string|void longform,    array(string)|string|void envvars,    string|int(0..1)|void def,    int|void throw_errors)   {    string|int(0..1) value;    -  int(0..1) hasarg = !zero_type(def); +  int(0..1) hasarg = !undefinedp(def);    if(!arrayp(longform)) longform = ({ [string]longform });    if(!arrayp(shortform)) shortform = ({ [string]shortform });    if(stringp(envvars)) envvars = ({ [string]envvars });       foreach(argv; int i; string opt) {    if(!i || !opt || sizeof(opt)<2 || opt[0]!='-') continue;       if(opt[1] == '-') {    if(opt=="--") break;   
pike.git/lib/modules/Getopt.pmod:206:   #define TYPE 1   #define ALIASES 2   #define ENV 3   #define DEF 4      #define SIZE 5         //! This function does the job of several calls to @[find_option()].   //! The main advantage of this is that it allows it to handle the - //! @tt{@b{POSIX_ME_HARDER@}@} environment variable better. When the either + //! @tt{@b{POSIX_ME_HARDER@}@} environment variable better. When either   //! the argument @[posix_me_harder] or the environment variable   //! @tt{@b{POSIX_ME_HARDER@}@} is true, no arguments will be parsed after   //! the first non-option on the command line.   //!   //! @param argv   //! The should be the array of strings that was sent as the second   //! argument to your @expr{main()@} function.   //!   //! @param options   //! Each element in the array @[options] should be an array on the