incorrect argument checking for "btrfs sub snap -r"
[platform/upstream/btrfs-progs.git] / btrfs.c
diff --git a/btrfs.c b/btrfs.c
index c90ee48..9cc2665 100644 (file)
--- a/btrfs.c
+++ b/btrfs.c
@@ -49,7 +49,7 @@ static struct Command commands[] = {
        /*
                avoid short commands different for the case only
        */
-       { do_clone, 2,
+       { do_clone, -2,
          "subvolume snapshot", "[-r] <source> [<dest>/]<name>\n"
                "Create a writable/readonly snapshot of the subvolume <source> with\n"
                "the name <name> in the <dest> directory.",