| 10812 | } |
| 10813 | |
| 10814 | int Session::run() { |
| 10815 | if( ( m_configData.waitForKeypress & WaitForKeypress::BeforeStart ) != 0 ) { |
| 10816 | Catch::cout() << "...waiting for enter/ return before starting" << std::endl; |
| 10817 | static_cast<void>(std::getchar()); |
| 10818 | } |
| 10819 | int exitCode = runInternal(); |
| 10820 | if( ( m_configData.waitForKeypress & WaitForKeypress::BeforeExit ) != 0 ) { |
| 10821 | Catch::cout() << "...waiting for enter/ return before exiting, with code: " << exitCode << std::endl; |
| 10822 | static_cast<void>(std::getchar()); |
| 10823 | } |
| 10824 | return exitCode; |
| 10825 | } |
| 10826 | |
| 10827 | clara::Parser const& Session::cli() const { |
| 10828 | return m_cli; |