diff options
author | orhun <orhun@archlinux.org> | 2021-07-08 02:05:37 +0300 |
---|---|---|
committer | orhun <orhun@archlinux.org> | 2021-07-08 02:05:37 +0300 |
commit | 888a5d836d036e199bde044c08adc04a38d9464d (patch) | |
tree | 302fa7cf0c67921d5363a4b55b0e00d9eb95834e /src/main.rs | |
parent | cb1df0b004e04f7aa71ac5398355877f18e46ae4 (diff) |
feat: Add `--select` option (#24)
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index a6c1f5e..effc241 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,6 +39,11 @@ fn main() -> Result<()> { _ => {} } } - // Exit. - tui.exit() + // Exit the user interface. + tui.exit()?; + // Print the exit message if any. + if let Some(message) = app.state.exit_message { + println!("{}", message); + } + Ok(()) } |