mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-06 11:35:45 +00:00

Also improve error reporting for `--format` with malformed or unsupported extensions This commit is very messy, as it also does an refac in the project, which should ideally be in a separated commit
15 lines
437 B
Plaintext
15 lines
437 B
Plaintext
---
|
|
source: tests/ui.rs
|
|
expression: "run_ouch(\"ouch compress input output --format .tar.$#!@.rest\", dir)"
|
|
---
|
|
[ERROR] Failed to parse `--format .tar.$#!@.rest`
|
|
- Unsupported extension '$#!@'
|
|
|
|
hint: Supported extensions are: tar, zip, bz, bz2, gz, lz4, xz, lzma, sz, zst, rar, 7z
|
|
hint: Supported aliases are: tgz, tbz, tlz4, txz, tzlma, tsz, tzst
|
|
hint:
|
|
hint: Examples:
|
|
hint: --format tar
|
|
hint: --format gz
|
|
hint: --format tar.gz
|