summaryrefslogtreecommitdiff
path: root/src/commands/cmd_subvolume.rs
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-02-05 20:33:10 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-02-05 21:31:08 -0500
commit1ef396b684a419b5a50ab215103486d189068800 (patch)
tree33bd8374f7d2d9eabd1712c33bc0ef63952afc85 /src/commands/cmd_subvolume.rs
parent1d39ee23af0daff6f0a6d616e74fec8cc9c5db54 (diff)
cmd_subvolume: Fix snapshot creation with implicit source
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'src/commands/cmd_subvolume.rs')
-rw-r--r--src/commands/cmd_subvolume.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/cmd_subvolume.rs b/src/commands/cmd_subvolume.rs
index 57c679a1..85183fa4 100644
--- a/src/commands/cmd_subvolume.rs
+++ b/src/commands/cmd_subvolume.rs
@@ -22,11 +22,12 @@ enum Subcommands {
/// Path
target: PathBuf
},
+ #[command(allow_missing_positional = true)]
Snapshot {
/// Make snapshot read only
#[arg(long, short = 'r')]
read_only: bool,
- source: PathBuf,
+ source: Option<PathBuf>,
dest: PathBuf
}
}