From 83a856090ec804d781a6dd649b3a6fc5a5b60405 Mon Sep 17 00:00:00 2001 From: Magic Len Date: Thu, 11 Mar 2021 22:48:59 +0800 Subject: [PATCH] improve error message --- Cargo.toml | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 829a2e5..34b54df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "xcompress" -version = "0.11.4" +version = "0.11.5" authors = ["Magic Len "] edition = "2018" repository = "https://github.com/magiclen/xcompress" diff --git a/src/main.rs b/src/main.rs index 14abb0d..a6c7d9e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -133,7 +133,7 @@ fn main() -> Result<(), Box> { handle_archive(&matches, &input_paths, output_path, best_compression, split) } else { - unimplemented!() + Err("Please input a subcommand. Use `help` to see how to use this program.".into()) } }