opts.object_dir = get_object_directory();
if (argc == 0)
- goto usage;
+ usage_with_options(builtin_multi_pack_index_usage,
+ builtin_multi_pack_index_options);
- if (!strcmp(argv[0], "write")) {
- if (argc > 1)
- goto usage;
+ if (argc > 1) {
+ die(_("too many arguments"));
+ return 1;
+ }
+ if (!strcmp(argv[0], "write"))
return write_midx_file(opts.object_dir);
- }
-usage:
- usage_with_options(builtin_multi_pack_index_usage,
- builtin_multi_pack_index_options);
+ die(_("unrecognized verb: %s"), argv[0]);
}