Skip to content

Commit

Permalink
dbop: make argument checking right
Browse files Browse the repository at this point in the history
References: GXF-2005, GXH-132
  • Loading branch information
jengelh committed Feb 24, 2025
1 parent c035dfb commit 412e8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/dbop_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int main(int argc, char **argv)
HXOPT_USAGEONERR) != HXOPT_ERR_SUCCESS)
return EXIT_FAILURE;
auto cl_0 = make_scope_exit([=]() { HX_zvecfree(argv); });
if (g_do_create + g_do_upgrade + g_do_create0) {
if (g_do_create + g_do_upgrade + g_do_create0 > 1) {
fprintf(stderr, "-C/-U/--create-old are mutually exclusive. Decide already!\n");
return EXIT_SUCCESS;
}
Expand Down

0 comments on commit 412e8bc

Please sign in to comment.