aboutsummaryrefslogtreecommitdiff
path: root/mling/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mling/src/cli.rs')
-rw-r--r--mling/src/cli.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/mling/src/cli.rs b/mling/src/cli.rs
index 705c6b4..b628021 100644
--- a/mling/src/cli.rs
+++ b/mling/src/cli.rs
@@ -17,6 +17,11 @@ pub use read::*;
pub mod install;
pub use install::*;
+/// Entry point for the CLI application.
+///
+/// # Panics
+///
+/// Panics on Windows if the virtual terminal processing cannot be enabled.
pub fn cli_entry() {
let mut program = ThisProgram::new();
@@ -62,7 +67,7 @@ pub fn cli_entry() {
#[cfg(windows)]
colored::control::set_virtual_terminal(true).unwrap();
- program.exec();
+ let _ = program.exec();
}
#[renderer]