mirror of
https://github.com/ouch-org/ouch.git
synced 2025-07-19 16:10:53 +00:00
fix subcommand
This commit is contained in:
parent
6b90deae14
commit
a6cf506635
@ -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,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user