mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Back out -\?. Didn't look good to Peter.
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright 2000 by PostgreSQL Global Development Group
|
* Copyright 2000 by PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.31 2000/05/11 03:14:19 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.32 2000/05/12 16:28:31 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
@ -82,8 +82,7 @@ static void
|
|||||||
static void
|
static void
|
||||||
showVersion(void);
|
showVersion(void);
|
||||||
|
|
||||||
static void
|
|
||||||
explain_help_and_exit(void);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
@ -514,7 +513,8 @@ parse_psql_options(int argc, char *argv[], struct adhoc_opts * options)
|
|||||||
/* unknown option reported by getopt */
|
/* unknown option reported by getopt */
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
explain_help_and_exit();
|
fputs("Try -? for help.\n", stderr);
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#ifndef HAVE_GETOPT_LONG
|
#ifndef HAVE_GETOPT_LONG
|
||||||
@ -525,7 +525,8 @@ parse_psql_options(int argc, char *argv[], struct adhoc_opts * options)
|
|||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
explain_help_and_exit();
|
fputs("Try -? for help.\n", stderr);
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -639,17 +640,3 @@ showVersion(void)
|
|||||||
puts("Read the file COPYRIGHT or use the command \\copyright to see the");
|
puts("Read the file COPYRIGHT or use the command \\copyright to see the");
|
||||||
puts("usage and distribution terms.");
|
puts("usage and distribution terms.");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
explain_help_and_exit(void)
|
|
||||||
{
|
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
fputs("Try -? for help.\n", stderr);
|
|
||||||
#else /* !WIN32 */
|
|
||||||
fputs("Try -\\? for help.\n", stderr);
|
|
||||||
#endif /* WIN32 */
|
|
||||||
|
|
||||||
exit(EXIT_FAILURE);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user