pike.git / lib / modules / Getopt.pmod

version» Context lines:

pike.git/lib/modules/Getopt.pmod:9:   //! consists of a dash followed by a character (@tt{-t@}), the long ones   //! consist of two dashes followed by a string of text (@tt{--test@}).   //! The short options can also be combined, which means that you can write   //! @tt{-tda@} instead of @tt{-t -d -a@}.   //!   //! Options can also require arguments, in which case they cannot be   //! combined. To write an option with an argument you write   //! @tt{-t @i{argument@}@} or @tt{-t@i{argument@}@} or   //! @tt{--test=@i{argument@}@}.    - static void my_error(string err, int throw_errors) { + protected void my_error(string err, int throw_errors) {    if(throw_errors) error(err);    werror([string(0..255)]err);    exit(1);   }      //! This is a generic function to parse command line options of the   //! type @tt{-f@}, @tt{--foo@} or @tt{--foo=bar@}.   //!   //! @param argv   //! The first argument should be the array of strings that was sent as