| 159 | } |
| 160 | |
| 161 | mp::ReturnCode mp::ArgParser::returnCodeFrom(ParseCode parse_code) const |
| 162 | { |
| 163 | switch (parse_code) |
| 164 | { |
| 165 | case ParseCode::CommandFail: |
| 166 | return ReturnCode::CommandFail; |
| 167 | case ParseCode::CommandLineError: |
| 168 | return ReturnCode::CommandLineError; |
| 169 | default: |
| 170 | return ReturnCode::Ok; |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | // This forces help to be printed using "help <command>" |
| 175 | void mp::ArgParser::forceCommandHelp() |