| 50 | } |
| 51 | |
| 52 | int commandLine::getOptionIntValue( |
| 53 | const std::string& option, int defaultValue) const { |
| 54 | for (int i = 1; i < argc - 1; i++) |
| 55 | if ((std::string)argv[i] == option) { |
| 56 | int r = atoi(argv[i + 1]); |
| 57 | return r; |
| 58 | } |
| 59 | return defaultValue; |
| 60 | } |
| 61 | |
| 62 | size_t commandLine::getOptionLongValue( |
| 63 | const std::string& option, size_t defaultValue) const { |
no outgoing calls