@@ -127,7 +127,7 @@ help_pg_probackup(void)
127
127
printf (_ (" [--error-log-filename=error-log-filename]\n" ));
128
128
printf (_ (" [--log-directory=log-directory]\n" ));
129
129
printf (_ (" [--log-rotation-size=log-rotation-size]\n" ));
130
- printf (_ (" [--log-rotation-age=log-rotation-age]\n" ));
130
+ printf (_ (" [--log-rotation-age=log-rotation-age] [--no-color] \n" ));
131
131
printf (_ (" [--delete-expired] [--delete-wal] [--merge-expired]\n" ));
132
132
printf (_ (" [--retention-redundancy=retention-redundancy]\n" ));
133
133
printf (_ (" [--retention-window=retention-window]\n" ));
@@ -188,7 +188,7 @@ help_pg_probackup(void)
188
188
printf (_ ("\n %s show -B backup-path\n" ), PROGRAM_NAME );
189
189
printf (_ (" [--instance=instance_name [-i backup-id]]\n" ));
190
190
printf (_ (" [--format=format] [--archive]\n" ));
191
- printf (_ (" [--help]\n" ));
191
+ printf (_ (" [--no-color] [-- help]\n" ));
192
192
193
193
printf (_ ("\n %s delete -B backup-path --instance=instance_name\n" ), PROGRAM_NAME );
194
194
printf (_ (" [-j num-threads] [--progress]\n" ));
@@ -273,7 +273,7 @@ help_backup(void)
273
273
printf (_ (" [--error-log-filename=error-log-filename]\n" ));
274
274
printf (_ (" [--log-directory=log-directory]\n" ));
275
275
printf (_ (" [--log-rotation-size=log-rotation-size]\n" ));
276
- printf (_ (" [--log-rotation-age=log-rotation-age]\n" ));
276
+ printf (_ (" [--log-rotation-age=log-rotation-age] [--no-color] \n" ));
277
277
printf (_ (" [--delete-expired] [--delete-wal] [--merge-expired]\n" ));
278
278
printf (_ (" [--retention-redundancy=retention-redundancy]\n" ));
279
279
printf (_ (" [--retention-window=retention-window]\n" ));
@@ -310,7 +310,6 @@ help_backup(void)
310
310
printf (_ (" (example: --note='backup before app update to v13.1')\n" ));
311
311
312
312
printf (_ ("\n Logging options:\n" ));
313
- printf (_ (" --color color the error and warning console messages\n" ));
314
313
printf (_ (" --log-level-console=log-level-console\n" ));
315
314
printf (_ (" level for console logging (default: info)\n" ));
316
315
printf (_ (" available options: 'off', 'error', 'warning', 'info', 'log', 'verbose'\n" ));
@@ -330,6 +329,7 @@ help_backup(void)
330
329
printf (_ (" --log-rotation-age=log-rotation-age\n" ));
331
330
printf (_ (" rotate logfile if its age exceeds this value; 0 disables; (default: 0)\n" ));
332
331
printf (_ (" available units: 'ms', 's', 'min', 'h', 'd' (default: min)\n" ));
332
+ printf (_ (" --no-color disable the coloring of error and warning console messages\n" ));
333
333
334
334
printf (_ ("\n Retention options:\n" ));
335
335
printf (_ (" --delete-expired delete backups expired according to current\n" ));
@@ -471,7 +471,6 @@ help_restore(void)
471
471
printf (_ (" -S, --primary-slot-name=slotname replication slot to be used for WAL streaming from the primary server\n" ));
472
472
473
473
printf (_ ("\n Logging options:\n" ));
474
- printf (_ (" --color color the error and warning console messages\n" ));
475
474
printf (_ (" --log-level-console=log-level-console\n" ));
476
475
printf (_ (" level for console logging (default: info)\n" ));
477
476
printf (_ (" available options: 'off', 'error', 'warning', 'info', 'log', 'verbose'\n" ));
@@ -491,6 +490,7 @@ help_restore(void)
491
490
printf (_ (" --log-rotation-age=log-rotation-age\n" ));
492
491
printf (_ (" rotate logfile if its age exceeds this value; 0 disables; (default: 0)\n" ));
493
492
printf (_ (" available units: 'ms', 's', 'min', 'h', 'd' (default: min)\n" ));
493
+ printf (_ (" --no-color disable the coloring of error and warning console messages\n" ));
494
494
495
495
printf (_ ("\n Remote options:\n" ));
496
496
printf (_ (" --remote-proto=protocol remote protocol to use\n" ));
@@ -538,7 +538,6 @@ help_validate(void)
538
538
printf (_ (" --skip-block-validation set to validate only file-level checksum\n" ));
539
539
540
540
printf (_ ("\n Logging options:\n" ));
541
- printf (_ (" --color color the error and warning console messages\n" ));
542
541
printf (_ (" --log-level-console=log-level-console\n" ));
543
542
printf (_ (" level for console logging (default: info)\n" ));
544
543
printf (_ (" available options: 'off', 'error', 'warning', 'info', 'log', 'verbose'\n" ));
@@ -557,7 +556,8 @@ help_validate(void)
557
556
printf (_ (" available units: 'kB', 'MB', 'GB', 'TB' (default: kB)\n" ));
558
557
printf (_ (" --log-rotation-age=log-rotation-age\n" ));
559
558
printf (_ (" rotate logfile if its age exceeds this value; 0 disables; (default: 0)\n" ));
560
- printf (_ (" available units: 'ms', 's', 'min', 'h', 'd' (default: min)\n\n" ));
559
+ printf (_ (" available units: 'ms', 's', 'min', 'h', 'd' (default: min)\n" ));
560
+ printf (_ (" --no-color disable the coloring of error and warning console messages\n\n" ));
561
561
}
562
562
563
563
static void
@@ -583,7 +583,6 @@ help_checkdb(void)
583
583
printf (_ (" can be used only with '--amcheck' option\n" ));
584
584
585
585
printf (_ ("\n Logging options:\n" ));
586
- printf (_ (" --color color the error and warning console messages\n" ));
587
586
printf (_ (" --log-level-console=log-level-console\n" ));
588
587
printf (_ (" level for console logging (default: info)\n" ));
589
588
printf (_ (" available options: 'off', 'error', 'warning', 'info', 'log', 'verbose'\n" ));
@@ -603,6 +602,7 @@ help_checkdb(void)
603
602
printf (_ (" --log-rotation-age=log-rotation-age\n" ));
604
603
printf (_ (" rotate logfile if its age exceeds this value; 0 disables; (default: 0)\n" ));
605
604
printf (_ (" available units: 'ms', 's', 'min', 'h', 'd' (default: min)\n" ));
605
+ printf (_ (" --no-color disable the coloring of error and warning console messages\n" ));
606
606
607
607
printf (_ ("\n Connection options:\n" ));
608
608
printf (_ (" -U, --pguser=USERNAME user name to connect as (default: current local user)\n" ));
@@ -625,7 +625,7 @@ help_show(void)
625
625
printf (_ (" -i, --backup-id=backup-id show info about specific backups\n" ));
626
626
printf (_ (" --archive show WAL archive information\n" ));
627
627
printf (_ (" --format=format show format=PLAIN|JSON\n" ));
628
- printf (_ (" --color color the info for plain format\n\n" ));
628
+ printf (_ (" --no- color disable the coloring for plain format\n\n" ));
629
629
}
630
630
631
631
static void
@@ -660,7 +660,6 @@ help_delete(void)
660
660
printf (_ (" --status=backup_status delete all backups with specified status\n" ));
661
661
662
662
printf (_ ("\n Logging options:\n" ));
663
- printf (_ (" --color color the error and warning console messages\n" ));
664
663
printf (_ (" --log-level-console=log-level-console\n" ));
665
664
printf (_ (" level for console logging (default: info)\n" ));
666
665
printf (_ (" available options: 'off', 'error', 'warning', 'info', 'log', 'verbose'\n" ));
@@ -679,7 +678,8 @@ help_delete(void)
679
678
printf (_ (" available units: 'kB', 'MB', 'GB', 'TB' (default: kB)\n" ));
680
679
printf (_ (" --log-rotation-age=log-rotation-age\n" ));
681
680
printf (_ (" rotate logfile if its age exceeds this value; 0 disables; (default: 0)\n" ));
682
- printf (_ (" available units: 'ms', 's', 'min', 'h', 'd' (default: min)\n\n" ));
681
+ printf (_ (" available units: 'ms', 's', 'min', 'h', 'd' (default: min)\n" ));
682
+ printf (_ (" --no-color disable the coloring of error and warning console messages\n\n" ));
683
683
}
684
684
685
685
static void
@@ -703,7 +703,6 @@ help_merge(void)
703
703
printf (_ (" --progress show progress\n" ));
704
704
705
705
printf (_ ("\n Logging options:\n" ));
706
- printf (_ (" --color color the error and warning console messages\n" ));
707
706
printf (_ (" --log-level-console=log-level-console\n" ));
708
707
printf (_ (" level for console logging (default: info)\n" ));
709
708
printf (_ (" available options: 'off', 'error', 'warning', 'info', 'log', 'verbose'\n" ));
@@ -722,7 +721,8 @@ help_merge(void)
722
721
printf (_ (" available units: 'kB', 'MB', 'GB', 'TB' (default: kB)\n" ));
723
722
printf (_ (" --log-rotation-age=log-rotation-age\n" ));
724
723
printf (_ (" rotate logfile if its age exceeds this value; 0 disables; (default: 0)\n" ));
725
- printf (_ (" available units: 'ms', 's', 'min', 'h', 'd' (default: min)\n\n" ));
724
+ printf (_ (" available units: 'ms', 's', 'min', 'h', 'd' (default: min)\n" ));
725
+ printf (_ (" --no-color disable the coloring of error and warning console messages\n\n" ));
726
726
}
727
727
728
728
static void
0 commit comments