| 13292 | } |
| 13293 | |
| 13294 | int Session::run() { |
| 13295 | if( ( m_configData.waitForKeypress & WaitForKeypress::BeforeStart ) != 0 ) { |
| 13296 | Catch::cout() << "...waiting for enter/ return before starting" << std::endl; |
| 13297 | static_cast<void>(std::getchar()); |
| 13298 | } |
| 13299 | int exitCode = runInternal(); |
| 13300 | if( ( m_configData.waitForKeypress & WaitForKeypress::BeforeExit ) != 0 ) { |
| 13301 | Catch::cout() << "...waiting for enter/ return before exiting, with code: " << exitCode << std::endl; |
| 13302 | static_cast<void>(std::getchar()); |
| 13303 | } |
| 13304 | return exitCode; |
| 13305 | } |
| 13306 | |
| 13307 | clara::Parser const& Session::cli() const { |
| 13308 | return m_cli; |