pike.git / lib / modules / Arg.pmod

version» Context lines:

pike.git/lib/modules/Arg.pmod:14:   //! if( arguments->help ) print_help();   //! ...   //! }   //! @endcode   //!   //! The @[Arg.parse] method will return a mapping from argument name   //! to the argument value, if any.   //!   //! Non-option arguments will be placed in the index Arg.REST   //! - //! The second way to use this module is to inherit the LowOptions - //! class and then start adding supported arguments: + //! The second way to use this module is to inherit the Options class + //! and add supported arguments.   //!   //! @code   //! class MyArguments { - //! inherit Arg.LowOptions; + //! inherit Arg.Options;   //! Opt verbose = NoOpt("-v")|NoOpt("--verbose");   //! Opt help = MaybeOpt("--help");   //! Opt output = HasOpt("--output")|HasOpt("-o");   //! };   //! @endcode   //!   //! Then, in main:   //!   //! @code   //! MyArguments args = MyArguments(argv);