chore: fix tests

This commit is contained in:
ttyS3 2024-03-24 10:18:33 +00:00
parent 2fa285235f
commit 687662c153
No known key found for this signature in database
GPG Key ID: A83C6C687C9E7888
3 changed files with 15 additions and 10 deletions

View File

@ -137,6 +137,7 @@ mod tests {
gitignore: false,
format: None,
// This is usually replaced in assertion tests
password: None,
cmd: Subcommand::Decompress {
// Put a crazy value here so no test can assert it unintentionally
files: vec!["\x00\x11\x22".into()],

View File

@ -1,5 +1,6 @@
---
source: tests/ui.rs
assertion_line: 119
expression: "output_to_string(ouch!(\"-h\"))"
---
A command-line utility for easily compressing and decompressing files and directories.
@ -20,6 +21,6 @@ Options:
-q, --quiet Silences output
-g, --gitignore Ignores files matched by git's ignore files
-f, --format <FORMAT> Specify the format of the archive
-p, --password <PASSWORD> decompress or list with password
-h, --help Print help (see more with '--help')
-V, --version Print version

View File

@ -40,6 +40,9 @@ Options:
-f, --format <FORMAT>
Specify the format of the archive
-p, --password <PASSWORD>
decompress or list with password
-h, --help
Print help (see a summary with '-h')