mirror of
https://github.com/ouch-org/ouch.git
synced 2025-07-28 21:51:50 +00:00
Remove --format work to release 0.3.0
This commit is contained in:
parent
73c1d9a41c
commit
4e2ea42962
@ -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());
|
||||
}
|
||||
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user