MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / print_help

Function print_help

src/utilities/ibmgr/ibmgr.cpp:801–837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

799
800
801static void print_help()
802{
803/**************************************
804 *
805 * p r i n t _ h e l p
806 *
807 **************************************
808 *
809 * Functional description
810 *
811 **************************************/
812 TEXT msg[MSG_LEN];
813 TEXT msg2[MSG_LEN];
814
815 fprintf(OUTFILE, "\n\n");
816 fprintf(OUTFILE, "Usage: fbmgr -command [-option [parameter]]\n\n");
817 fprintf(OUTFILE, "or fbmgr<RETURN>\n");
818 fprintf(OUTFILE, " FBMGR> command [-option [parameter]]\n\n");
819 fprintf(OUTFILE, " shut [-now] shutdown server\n");
820 fprintf(OUTFILE, " show show host and user\n");
821 fprintf(OUTFILE, " user <user_name> set user name\n");
822 fprintf(OUTFILE, " password <password> set DBA password\n");
823 fprintf(OUTFILE, " pidfile <filename> file to save fbserver's PID\n");
824 fprintf(OUTFILE, " help prints help text\n");
825 fprintf(OUTFILE, " quit quit prompt mode\n\n");
826 fprintf(OUTFILE, "Command switches 'user' and 'password' can also be used\n");
827 fprintf(OUTFILE, "as an option switches for commands like start or shut.\n");
828 fprintf(OUTFILE, "For example, to shutdown server you can: \n\n");
829 fprintf(OUTFILE, "fbmgr -shut -password <password>\n\n");
830 fprintf(OUTFILE, "or\n\n");
831 fprintf(OUTFILE, "fbmgr<RETURN>\n");
832 fprintf(OUTFILE, "FBMGR> shut -password <password>\n\n");
833 fprintf(OUTFILE, "or\n\n");
834 fprintf(OUTFILE, "fbmgr<RETURN>\n");
835 fprintf(OUTFILE, "FBMGR> password <password>\n");
836 fprintf(OUTFILE, "FBMGR> shut\n\n\n");
837}
838
839
840static SSHORT parse_cmd_line( int argc, TEXT** argv, bool zapPasswd)

Callers 1

parse_cmd_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected