| 11080 | } |
| 11081 | |
| 11082 | int Session::run() { |
| 11083 | if( ( m_configData.waitForKeypress & WaitForKeypress::BeforeStart ) != 0 ) { |
| 11084 | Catch::cout() << "...waiting for enter/ return before starting" << std::endl; |
| 11085 | static_cast<void>(std::getchar()); |
| 11086 | } |
| 11087 | int exitCode = runInternal(); |
| 11088 | if( ( m_configData.waitForKeypress & WaitForKeypress::BeforeExit ) != 0 ) { |
| 11089 | Catch::cout() << "...waiting for enter/ return before exiting, with code: " << exitCode << std::endl; |
| 11090 | static_cast<void>(std::getchar()); |
| 11091 | } |
| 11092 | return exitCode; |
| 11093 | } |
| 11094 | |
| 11095 | clara::Parser const& Session::cli() const { |
| 11096 | return m_cli; |