]> granicus.if.org Git - postgresql/commit
Add new psql help topics, accessible to both --help and \?.
authorAndres Freund <andres@anarazel.de>
Tue, 9 Sep 2014 20:19:14 +0000 (22:19 +0200)
committerAndres Freund <andres@anarazel.de>
Tue, 9 Sep 2014 22:08:56 +0000 (00:08 +0200)
commit07c8651dd91d5aea38bee268acb582674ca4b5ea
tree806433b72903df9f2081d563454ae610260d09f0
parent0709b7ee72e4bc71ad07b7120acd117265ab51d0
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
doc/src/sgml/ref/psql-ref.sgml
src/bin/psql/command.c
src/bin/psql/help.c
src/bin/psql/help.h
src/bin/psql/startup.c
src/bin/psql/tab-complete.c