Skip to content

Commit 9cd12fb

Browse files
committed
PGPRO-533: Update hellp command
1 parent c71151d commit 9cd12fb

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/configure.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ static pgBackupConfig *cur_config = NULL;
2929
static PQExpBufferData show_buf;
3030
static int32 json_level = 0;
3131

32+
/*
33+
* All this code needs refactoring.
34+
*/
35+
3236
/* Set configure options */
3337
int
3438
do_configure(bool show_only)

src/help.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ help_pg_probackup(void)
8989
printf(_(" [--replica-timeout=timeout]\n"));
9090

9191
printf(_("\n %s show-config -B backup-dir --instance=instance_name\n"), PROGRAM_NAME);
92+
printf(_(" [--format=format]\n"));
9293

9394
printf(_("\n %s backup -B backup-path -b backup-mode --instance=instance_name\n"), PROGRAM_NAME);
9495
printf(_(" [-C] [--stream [-S slot-name]] [--backup-pg-log]\n"));
@@ -358,7 +359,8 @@ static void
358359
help_show(void)
359360
{
360361
printf(_("%s show -B backup-dir\n"), PROGRAM_NAME);
361-
printf(_(" [--instance=instance_name [-i backup-id]]\n\n"));
362+
printf(_(" [--instance=instance_name [-i backup-id]]\n"));
363+
printf(_(" [--format=format]\n\n"));
362364

363365
printf(_(" -B, --backup-path=backup-path location of the backup storage area\n"));
364366
printf(_(" --instance=instance_name show info about specific intstance\n"));
@@ -474,10 +476,12 @@ help_set_config(void)
474476
static void
475477
help_show_config(void)
476478
{
477-
printf(_("%s show-config -B backup-dir --instance=instance_name\n\n"), PROGRAM_NAME);
479+
printf(_("%s show-config -B backup-dir --instance=instance_name\n"), PROGRAM_NAME);
480+
printf(_(" [--format=format]\n\n"));
478481

479482
printf(_(" -B, --backup-path=backup-path location of the backup storage area\n"));
480483
printf(_(" --instance=instance_name name of the instance\n"));
484+
printf(_(" --format=format show format=PLAIN|JSON\n"));
481485
}
482486

483487
static void

0 commit comments

Comments
 (0)