diff options
author | Andres Freund <andres@anarazel.de> | 2014-09-09 22:19:14 +0200 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2014-09-10 00:08:56 +0200 |
commit | 07c8651dd91d5aea38bee268acb582674ca4b5ea (patch) | |
tree | 806433b72903df9f2081d563454ae610260d09f0 /src/bin/psql/help.h | |
parent | 0709b7ee72e4bc71ad07b7120acd117265ab51d0 (diff) |
Add new psql help topics, accessible to both --help and \?.
Add --help=<topic> for the commandline, and \? <topic> as a backslash
command, to show more help than the invocations without parameters
do. "commands", "variables" and "options" currently exist as help
topics describing, respectively, backslash commands, psql variables,
and commandline switches. Without parameters the help commands show
their previous topic.
Some further wordsmithing or extending of the added help content might
be needed; but there seems little benefit delaying the overall feature
further.
Author: Pavel Stehule, editorialized by many
Reviewed-By: Andres Freund, Petr Jelinek, Fujii Masao, MauMau, Abhijit
Menon-Sen and Erik Rijkers.
Discussion: CAFj8pRDVGuC-nXBfe2CK8vpyzd2Dsr9GVpbrATAnZO=2YQ0s2Q@mail.gmail.com,
CAFj8pRA54AbTv2RXDTRxiAd8hy8wxmoVLqhJDRCwEnhdd7OUkw@mail.gmail.com
Diffstat (limited to 'src/bin/psql/help.h')
-rw-r--r-- | src/bin/psql/help.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/psql/help.h b/src/bin/psql/help.h index 054d5a49674..3ad374a9121 100644 --- a/src/bin/psql/help.h +++ b/src/bin/psql/help.h @@ -8,10 +8,12 @@ #ifndef HELP_H #define HELP_H -void usage(void); +void usage(unsigned short int pager); void slashUsage(unsigned short int pager); +void helpVariables(unsigned short int pager); + void helpSQL(const char *topic, unsigned short int pager); void print_copyright(void); |