···1414use crate::utils::{CmprssInput, CmprssOutput, CommonArgs, Compressor, Result};
15151616/// Extract an action hint from the CLI flags. Returns `None` when the user
1717-/// hasn't specified `--compress`/`--extract`/`--decompress`, in which case
1818-/// the action will be inferred from filenames downstream.
1717+/// hasn't specified `--compress`/`--extract`, in which case the action will
1818+/// be inferred from filenames downstream.
1919fn action_from_flags(args: &CommonArgs) -> Option<Action> {
2020 if args.compress {
2121 Some(Action::Compress)
2222- } else if args.extract || args.decompress {
2222+ } else if args.extract {
2323 Some(Action::Extract)
2424 } else {
2525 None
+1-5
src/utils.rs
···3131 pub compress: bool,
32323333 /// Extract the input
3434- #[arg(short, long)]
3434+ #[arg(short, long, visible_alias = "decompress")]
3535 pub extract: bool,
3636-3737- /// Decompress the input. Alias of --extract
3838- #[arg(short, long)]
3939- pub decompress: bool,
40364137 /// List of I/O.
4238 /// This consists of all the inputs followed by the single output, with intelligent fallback to stdin/stdout.