| 13509 | } |
| 13510 | |
| 13511 | int Session::run() { |
| 13512 | if( ( m_configData.waitForKeypress & WaitForKeypress::BeforeStart ) != 0 ) { |
| 13513 | Catch::cout() << "...waiting for enter/ return before starting" << std::endl; |
| 13514 | static_cast<void>(std::getchar()); |
| 13515 | } |
| 13516 | int exitCode = runInternal(); |
| 13517 | if( ( m_configData.waitForKeypress & WaitForKeypress::BeforeExit ) != 0 ) { |
| 13518 | Catch::cout() << "...waiting for enter/ return before exiting, with code: " << exitCode << std::endl; |
| 13519 | static_cast<void>(std::getchar()); |
| 13520 | } |
| 13521 | return exitCode; |
| 13522 | } |
| 13523 | |
| 13524 | clara::Parser const& Session::cli() const { |
| 13525 | return m_cli; |