Skip to content

Commit

Permalink
Remove --format work to release 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospb19 committed Nov 2, 2021
1 parent 73c1d9a commit 4e2ea42
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 <FILES>... {}.tar.gz", to_utf(&output_path)))
.hint(format!(" ouch compress <FILES>... {}.zip", to_utf(&output_path)))
.hint("")
.hint("Alternatively, you can overwrite this option by using the '--format' flag:")
.hint(format!(" ouch compress <FILES>... {} --format tar.gz", to_utf(&output_path)));
.hint(format!(" ouch compress <FILES>... {}.zip", to_utf(&output_path)));

return Err(error.into());
}
Expand Down Expand Up @@ -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());
}
Expand Down

0 comments on commit 4e2ea42

Please sign in to comment.