equal
deleted
inserted
replaced
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 |