diff options
author | Magnus Hagander <magnus@hagander.net> | 2010-03-06 15:28:09 +0000 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2010-03-06 15:28:09 +0000 |
commit | 66c2cc2ba93ea9015b7ce43a2fb4edc601eaaf94 (patch) | |
tree | 5604c7bd7c9eb8d028091b46be5ef07827e9fdf8 /src/bin/psql/help.c | |
parent | b8b34b7b44ee7d932b2a1317232ff15fb72cf1a7 (diff) | |
download | postgresql-66c2cc2ba93ea9015b7ce43a2fb4edc601eaaf94.tar.gz postgresql-66c2cc2ba93ea9015b7ce43a2fb4edc601eaaf94.zip |
Add --psqlrc=FILENAME parameter to psql, to process an explicitly named
file instead of ~/.psqlrc on startup.
Diffstat (limited to 'src/bin/psql/help.c')
-rw-r--r-- | src/bin/psql/help.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c index 6b835fbd26c..8d6350fce2d 100644 --- a/src/bin/psql/help.c +++ b/src/bin/psql/help.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2010, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.155 2010/01/02 16:57:59 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.156 2010/03/06 15:28:09 mha Exp $ */ #include "postgres_fe.h" @@ -99,6 +99,7 @@ usage(void) printf(_(" -v, --set=, --variable=NAME=VALUE\n" " set psql variable NAME to VALUE\n")); printf(_(" -X, --no-psqlrc do not read startup file (~/.psqlrc)\n")); + printf(_(" --psqlrc=FILENAME read startup commands from file (instead of ~/.psqlrc)\n")); printf(_(" -1 (\"one\"), --single-transaction\n" " execute command file as a single transaction\n")); printf(_(" --help show this help, then exit\n")); |