| 12869 | } |
| 12870 | |
| 12871 | int Session::run() { |
| 12872 | if( ( m_configData.waitForKeypress & WaitForKeypress::BeforeStart ) != 0 ) { |
| 12873 | Catch::cout() << "...waiting for enter/ return before starting" << std::endl; |
| 12874 | static_cast<void>(std::getchar()); |
| 12875 | } |
| 12876 | int exitCode = runInternal(); |
| 12877 | if( ( m_configData.waitForKeypress & WaitForKeypress::BeforeExit ) != 0 ) { |
| 12878 | Catch::cout() << "...waiting for enter/ return before exiting, with code: " << exitCode << std::endl; |
| 12879 | static_cast<void>(std::getchar()); |
| 12880 | } |
| 12881 | return exitCode; |
| 12882 | } |
| 12883 | |
| 12884 | clara::Parser const& Session::cli() const { |
| 12885 | return m_cli; |