fix subcommand

This commit is contained in:
valoq 2025-07-12 18:48:59 +02:00
parent 6b90deae14
commit a6cf506635
No known key found for this signature in database
GPG Key ID: 19F09A0FB865CBD8

View File

@ -89,6 +89,10 @@ pub enum Subcommand {
/// Archive target files instead of storing symlinks (supported by `tar` and `zip`) /// Archive target files instead of storing symlinks (supported by `tar` and `zip`)
#[arg(long, short = 'S')] #[arg(long, short = 'S')]
follow_symlinks: bool, follow_symlinks: bool,
/// Mark sandbox as disabled
#[arg(long, global = true)]
disable_sandbox: bool,
}, },
/// Decompresses one or more files, optionally into another folder /// Decompresses one or more files, optionally into another folder
#[command(visible_alias = "d")] #[command(visible_alias = "d")]
@ -123,6 +127,10 @@ pub enum Subcommand {
/// Show archive contents as a tree /// Show archive contents as a tree
#[arg(short, long)] #[arg(short, long)]
tree: bool, tree: bool,
/// Mark sandbox as disabled
#[arg(long, global = true)]
disable_sandbox: bool,
}, },
} }
@ -170,6 +178,7 @@ mod tests {
output_dir: None, output_dir: None,
remove: false, remove: false,
no_smart_unpack: false, no_smart_unpack: false,
disable_sandbox: true,
}, },
} }
} }