cmd_format: fix -l, -v options
Some checks failed
build / bcachefs-tools-deb (ubuntu-22.04) (push) Has been cancelled
build / bcachefs-tools-deb (ubuntu-24.04) (push) Has been cancelled
build / bcachefs-tools-rpm (push) Has been cancelled
build / bcachefs-tools-msrv (push) Has been cancelled
Nix-Tests / nix-flake-check (push) Has been cancelled
update-flake-lock / lockfile (push) Has been cancelled

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2025-01-26 17:34:23 -05:00
parent 56b2449ded
commit 895fc9a101

View File

@ -147,7 +147,7 @@ int cmd_format(int argc, char *argv[])
initialize = false; initialize = false;
while ((opt = getopt_long(argc, argv, while ((opt = getopt_long(argc, argv,
"-L:U:g:fqhv", "-L:l:U:g:fqhv",
format_opts, format_opts,
NULL)) != -1) NULL)) != -1)
switch (opt) { switch (opt) {
@ -238,6 +238,7 @@ int cmd_format(int argc, char *argv[])
break; break;
case 'v': case 'v':
verbose = true; verbose = true;
break;
case O_help: case O_help:
case 'h': case 'h':
usage(); usage();