Skip to content

Commit f89e2a0

Browse files
committed
misc: add -s alternative to --save-auto
1 parent 294af88 commit f89e2a0

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

refract/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ long = "--no-ycbcr"
7272
description = "Skip AVIF YCbCr encoding passes."
7373

7474
[[package.metadata.bashman.switches]]
75+
short = "-s"
7576
long = "--save-auto"
7677
description = "Automatically save successful conversions to their source paths — with new extensions appended — instead of popping file dialogues for confirmation."
7778

refract/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fn build_cli() {
3737
"--no-lossless",
3838
"--no-lossy",
3939
"--no-ycbcr",
40-
"--save-auto",
40+
"-s", "--save-auto",
4141
"-V", "--version",
4242
]);
4343
builder.push_keys_with_values(["-l", "--list"]);

refract/src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ impl App {
208208
Argument::Key("--no-lossless") => { flags &= ! MODE_LOSSLESS; },
209209
Argument::Key("--no-lossy") => { flags &= ! MODE_LOSSY; },
210210
Argument::Key("--no-ycbcr") => { flags &= ! MODE_LOSSY_YCBCR; },
211-
Argument::Key("--save-auto") => { flags |= OTHER_SAVE_AUTO; },
211+
Argument::Key("-s" | "--save-auto") => { flags |= OTHER_SAVE_AUTO; },
212212
Argument::Key("-V" | "--version") => return Err(RefractError::PrintVersion),
213213

214214
Argument::KeyWithValue("-l" | "--list", s) => {

refract_core/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ MODE FLAGS:
4343
4444
MISC FLAGS:
4545
-h, --help Print help information and exit.
46-
--save-auto Automatically save successful conversions to their source
46+
-s, --save-auto Automatically save successful conversions to their source
4747
paths — with new extensions appended — instead of popping
4848
file dialogues for confirmation.
4949
-V, --version Print version information and exit.

0 commit comments

Comments
 (0)