lemon/arg_parser.h
changeset 974 b1744d7bdb47
parent 877 141f9c0db4a3
child 1123 18c89646185e
equal deleted inserted replaced
15:24e8add8d24a 16:e46f5fd2942d
    33 ///\brief A tool to parse command line arguments.
    33 ///\brief A tool to parse command line arguments.
    34 
    34 
    35 namespace lemon {
    35 namespace lemon {
    36 
    36 
    37   ///Exception used by ArgParser
    37   ///Exception used by ArgParser
       
    38 
       
    39   ///Exception used by ArgParser.
       
    40   ///
    38   class ArgParserException : public Exception {
    41   class ArgParserException : public Exception {
    39   public:
    42   public:
       
    43     /// Reasons for failure
       
    44 
       
    45     /// Reasons for failure.
       
    46     ///
    40     enum Reason {
    47     enum Reason {
    41       HELP,         /// <tt>--help</tt> option was given
    48       HELP,         ///< <tt>--help</tt> option was given.
    42       UNKNOWN_OPT,  /// Unknown option was given
    49       UNKNOWN_OPT,  ///< Unknown option was given.
    43       INVALID_OPT   /// Invalid combination of options
    50       INVALID_OPT   ///< Invalid combination of options.
    44     };
    51     };
    45 
    52 
    46   private:
    53   private:
    47     Reason _reason;
    54     Reason _reason;
    48 
    55