]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - cmd_format.c
Merge pull request #15 from modelrockettier/update-initramfs
[bcachefs-tools-debian] / cmd_format.c
index 83246a0f717c42c4f4a89e503fb10d36b15d1199..cffb8dc1494a8cd7ca2e20fe442b5e46b2889df4 100644 (file)
@@ -122,7 +122,7 @@ int cmd_format(int argc, char *argv[])
        struct bch_opts fs_opts = bch2_parse_opts(fs_opt_strs);
 
        while ((opt = getopt_long(argc, argv,
-                                 "-L:U:fh",
+                                 "-L:U:g:fqh",
                                  format_opts,
                                  NULL)) != -1)
                switch (opt) {
@@ -196,7 +196,7 @@ int cmd_format(int argc, char *argv[])
                        exit(EXIT_SUCCESS);
                        break;
                case '?':
-                       die("unrecognized option %s", optarg);
+                       exit(EXIT_FAILURE);
                        break;
                }