diff options
| author | liv <liv@fastmail.com> | 2019-01-09 20:44:55 +0100 |
|---|---|---|
| committer | liv <liv@fastmail.com> | 2019-01-09 20:44:55 +0100 |
| commit | 7fa2f87c8b47dbb79d4c6e41bdd095e6962270fa (patch) | |
| tree | 04ec95a052975d9272ff4f06d066bc9ccfd81166 /src/main.rs | |
| parent | e03a98cbf6491dcf36e8a96fda20764bc1e1748e (diff) | |
make the default output a bit nicer
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/main.rs b/src/main.rs index c229e0b..779e4b9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -32,13 +32,17 @@ fn main() { let ss = SyntaxSet::load_defaults_newlines(); let ts = ThemeSet::load_defaults(); - println!(r#" _ _ _ "#); - println!(r#" _ __ _ _ ___| |_| (_)_ __ __ _ ___ "#); - println!(r#" | '__| | | / __| __| | | '_ \ / _` / __| "#); - println!(r#" | | | |_| \__ \ |_| | | | | | (_| \__ \ "#); - println!(r#" |_| \__,_|___/\__|_|_|_| |_|\__, |___/ "#); - println!(r#" |___/ "#); - println!(""); + if None == matches.subcommand_name() { + println!(""); + println!(r#" welcome to... "#); + println!(r#" _ _ _ "#); + println!(r#" _ __ _ _ ___| |_| (_)_ __ __ _ ___ "#); + println!(r#" | '__| | | / __| __| | | '_ \ / _` / __| "#); + println!(r#" | | | |_| \__ \ |_| | | | | | (_| \__ \ "#); + println!(r#" |_| \__,_|___/\__|_|_|_| |_|\__, |___/ "#); + println!(r#" |___/ "#); + println!(""); + } if let Some(matches) = matches.subcommand_matches("run") { run(matches.clone()); |
