Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit40c992c

Browse files
committed
Back out -\?. Didn't look good to Peter.
1 parent9d31e3a commit40c992c

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

‎src/bin/psql/startup.c

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.31 2000/05/11 03:14:19 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.32 2000/05/12 16:28:31 momjian Exp $
77
*/
88
#include"postgres.h"
99

@@ -82,8 +82,7 @@ static void
8282
staticvoid
8383
showVersion(void);
8484

85-
staticvoid
86-
explain_help_and_exit(void);
85+
8786

8887
/*
8988
*
@@ -514,7 +513,8 @@ parse_psql_options(int argc, char *argv[], struct adhoc_opts * options)
514513
/* unknown option reported by getopt */
515514
else
516515
{
517-
explain_help_and_exit();
516+
fputs("Try -? for help.\n",stderr);
517+
exit(EXIT_FAILURE);
518518
}
519519
break;
520520
#ifndefHAVE_GETOPT_LONG
@@ -525,7 +525,8 @@ parse_psql_options(int argc, char *argv[], struct adhoc_opts * options)
525525
break;
526526
#endif
527527
default:
528-
explain_help_and_exit();
528+
fputs("Try -? for help.\n",stderr);
529+
exit(EXIT_FAILURE);
529530
break;
530531
}
531532
}
@@ -639,17 +640,3 @@ showVersion(void)
639640
puts("Read the file COPYRIGHT or use the command \\copyright to see the");
640641
puts("usage and distribution terms.");
641642
}
642-
643-
staticvoid
644-
explain_help_and_exit(void)
645-
{
646-
647-
#ifdefWIN32
648-
fputs("Try -? for help.\n",stderr);
649-
#else/* !WIN32 */
650-
fputs("Try -\\? for help.\n",stderr);
651-
#endif/* WIN32 */
652-
653-
exit(EXIT_FAILURE);
654-
}
655-

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp