From 4e2ea42962aac930d7203a413caa080b592b12f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20M=2E=20Bezerra?= Date: Tue, 2 Nov 2021 09:49:01 -0300 Subject: [PATCH] Remove --format work to release 0.3.0 --- src/commands.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/commands.rs b/src/commands.rs index bef9a8a..106e36d 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -48,10 +48,7 @@ pub fn run(args: Opts, question_policy: QuestionPolicy) -> crate::Result<()> { .detail("You shall supply the compression format") .hint("Try adding supported extensions (see --help):") .hint(format!(" ouch compress ... {}.tar.gz", to_utf(&output_path))) - .hint(format!(" ouch compress ... {}.zip", to_utf(&output_path))) - .hint("") - .hint("Alternatively, you can overwrite this option by using the '--format' flag:") - .hint(format!(" ouch compress ... {} --format tar.gz", to_utf(&output_path))); + .hint(format!(" ouch compress ... {}.zip", to_utf(&output_path))); return Err(error.into()); } @@ -184,10 +181,7 @@ pub fn run(args: Opts, question_policy: QuestionPolicy) -> crate::Result<()> { )) .detail("Decompression formats are detected automatically by the file extension") .hint("Provide a file with a supported extension:") - .hint(" ouch decompress example.tar.gz") - .hint("") - .hint("Or overwrite this option with the '--format' flag:") - .hint(format!(" ouch decompress {} --format tar.gz", to_utf(&files_missing_format[0]))); + .hint(" ouch decompress example.tar.gz"); return Err(error.into()); }