Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2f80c95

Browse files
Mark options as deprecated in usage output
Some deprecated options were not marked as such in usage output. This does so across the installed binaries in an attempt to provide consistent markup for this. Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Discussion: https://postgr.es/m/062C6A8A-A4E8-4F52-9E31-45F0C9E9915E@yesql.se
1 parent 7ab1bc2 commit 2f80c95

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

contrib/oid2name/oid2name.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ help(const char *progname)
217217
"\nConnection options:\n"
218218
" -d, --dbname=DBNAME database to connect to\n"
219219
" -h, --host=HOSTNAME database server host or socket directory\n"
220-
" -H same as -h, deprecated option\n"
220+
" -H (same as -h, deprecated)\n"
221221
" -p, --port=PORT database server port number\n"
222222
" -U, --username=USERNAME connect as specified database user\n"
223223
"\nThe default action is to show all database OIDs.\n\n"

src/backend/main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ help(const char *progname)
339339
printf(_(" -e use European date input format (DMY)\n"));
340340
printf(_(" -F turn fsync off\n"));
341341
printf(_(" -h HOSTNAME host name or IP address to listen on\n"));
342-
printf(_(" -i enable TCP/IP connections\n"));
342+
printf(_(" -i enable TCP/IP connections (deprecated)\n"));
343343
printf(_(" -k DIRECTORY Unix-domain socket location\n"));
344344
#ifdef USE_SSL
345345
printf(_(" -l enable SSL connections\n"));

src/bin/pg_dump/pg_dump.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,10 +1037,10 @@ help(const char *progname)
10371037

10381038
printf(_("\nOptions controlling the output content:\n"));
10391039
printf(_(" -a, --data-only dump only the data, not the schema\n"));
1040-
printf(_(" -b, --large-objects, --blobs\n"
1041-
" include large objects in dump\n"));
1042-
printf(_(" -B, --no-large-objects, --no-blobs\n"
1043-
" exclude large objects in dump\n"));
1040+
printf(_(" -b, --large-objects include large objects in dump\n"
1041+
" --blobs (same as --large-objects, deprecated)\n"));
1042+
printf(_(" -B, --no-large-objects exclude large objects in dump\n"
1043+
" --no-blobs (same as --no-large-objects, deprecated)\n"));
10441044
printf(_(" -c, --clean clean (drop) database objects before recreating\n"));
10451045
printf(_(" -C, --create include commands to create database in dump\n"));
10461046
printf(_(" -e, --extension=PATTERN dump the specified extension(s) only\n"));

0 commit comments

Comments
 (0)