pike.git / lib / modules / Getopt.pmod

version» Context lines:

pike.git/lib/modules/Getopt.pmod:162:    }       if(arrayp(envvars))    foreach([array(string)]envvars, value)    if(value && (value=[string]getenv([string]value)))    return value;       return def;   }    - //! + //! Used with @[find_all_options()] to indicate that an option + //! requires an argument. + //! @seealso + //! @[find_all_options()]   constant HAS_ARG=1;    - //! + //! Used with @[find_all_options()] to indicate that an option + //! does not take an argument. + //! @seealso + //! @[find_all_options()]   constant NO_ARG=2;    - //! + //! Used with @[find_all_options()] to indicate that an option + //! takes an optional argument. + //! @seealso + //! @[find_all_options()]   constant MAY_HAVE_ARG=3;         // ({ "name", type, "alias"|({"aliases"}), "env_var", default })      #define NAME 0   #define TYPE 1   #define ALIASES 2   #define ENV 3   #define DEF 4