We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0afc004 commit d3b1127Copy full SHA for d3b1127
src/pg_probackup.c
@@ -271,10 +271,8 @@ main(int argc, char *argv[])
271
backup_subcmd = SHOW_CONFIG_CMD;
272
else if (strcmp(argv[optind], "help") == 0)
273
{
274
- if (argc - optind < 2)
275
- help_pg_probackup();
276
- else
277
- help_command(argv[optind + 1]);
+ optind++;
+ help_opt = true;
278
}
279
else if (strcmp(argv[optind], "version") == 0)
280
version_opt = true;
@@ -284,7 +282,7 @@ main(int argc, char *argv[])
284
282
285
283
if (help_opt)
286
287
- if (backup_subcmd == NO_CMD || argc - optind < 1)
+ if (argc - optind < 1)
288
help_pg_probackup();
289
else
290
help_command(argv[optind]);
0 commit comments