this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor(cli): collapse --decompress into --extract alias

+4 -8
+3 -3
src/job.rs
··· 14 14 use crate::utils::{CmprssInput, CmprssOutput, CommonArgs, Compressor, Result}; 15 15 16 16 /// Extract an action hint from the CLI flags. Returns `None` when the user 17 - /// hasn't specified `--compress`/`--extract`/`--decompress`, in which case 18 - /// the action will be inferred from filenames downstream. 17 + /// hasn't specified `--compress`/`--extract`, in which case the action will 18 + /// be inferred from filenames downstream. 19 19 fn action_from_flags(args: &CommonArgs) -> Option<Action> { 20 20 if args.compress { 21 21 Some(Action::Compress) 22 - } else if args.extract || args.decompress { 22 + } else if args.extract { 23 23 Some(Action::Extract) 24 24 } else { 25 25 None
+1 -5
src/utils.rs
··· 31 31 pub compress: bool, 32 32 33 33 /// Extract the input 34 - #[arg(short, long)] 34 + #[arg(short, long, visible_alias = "decompress")] 35 35 pub extract: bool, 36 - 37 - /// Decompress the input. Alias of --extract 38 - #[arg(short, long)] 39 - pub decompress: bool, 40 36 41 37 /// List of I/O. 42 38 /// This consists of all the inputs followed by the single output, with intelligent fallback to stdin/stdout.