diff --git a/btrfs-image.c b/btrfs-image.c index 03cf85e7..985aa26c 100644 --- a/btrfs-image.c +++ b/btrfs-image.c @@ -2522,6 +2522,10 @@ int main(int argc, char *argv[]) } argc = argc - optind; + set_argv0(argv); + if (check_argc_min(argc, 2)) + print_usage(); + dev_cnt = argc - 1; if (create) {