bcachefs-tools: make targets of subvolume create/delete required
PATCH 1/1 bcachefs-tools: make targets of subvolume create/delete required
Currently, when no targets are provided for "bcachefs subvolume create" or "bcachefs subvolume delete", it will exit silently with code 0. Make targets (arguments) required to solve this problem.
This patch solves issue https://github.com/koverstreet/bcachefs/issues/766.
Signed-off-by Integral <[email protected]>
--- src/commands/subvolume.rs | 2 ++ 1 file changed, 2 insertions(+)
src/commands/subvolume.rs +2 -0
@@ -18,12 +18,14 @@ enum Subcommands {#[command(visible_aliases = [ "new" ])] Create {/// Paths +#[arg(required = true )] targets: Vec<PathBuf>, }, #[command(visible_aliases = ["del"])]Delete {/// Path +#[arg(required = true )] targets: Vec<PathBuf>, },
--
2.47.0
Hi, Kent
Give you a gentle ping :)