mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-30 03:41:27 +02:00
07c8651dd9
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
22 lines
408 B
C
22 lines
408 B
C
/*
|
|
* psql - the PostgreSQL interactive terminal
|
|
*
|
|
* Copyright (c) 2000-2014, PostgreSQL Global Development Group
|
|
*
|
|
* src/bin/psql/help.h
|
|
*/
|
|
#ifndef HELP_H
|
|
#define HELP_H
|
|
|
|
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);
|
|
|
|
#endif
|