summaryrefslogtreecommitdiffstats
path: root/gui/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/main.rs')
-rw-r--r--gui/src/main.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/gui/src/main.rs b/gui/src/main.rs
index ea47a93..bfa133e 100644
--- a/gui/src/main.rs
+++ b/gui/src/main.rs
@@ -10,16 +10,14 @@ fn main() -> Result<()> {
let matches = crate::cli::app().get_matches();
match matches.subcommand() {
- None => crate::gui::run(),
+ None => {
+ let name = matches.value_of("name").map(String::from).unwrap(); // safe by clap
+ crate::gui::run(name)
+ },
Some((other, _)) => {
log::error!("No subcommand {} implemented", other);
Ok(())
},
-
- _ => {
- log::error!("Don't know what to do");
- Ok(())
- },
}
}