3
3
*
4
4
* Copyright 2000 by PostgreSQL Global Development Group
5
5
*
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 $
7
7
*/
8
8
#include "postgres.h"
9
9
@@ -82,8 +82,7 @@ static void
82
82
static void
83
83
showVersion (void );
84
84
85
- static void
86
- explain_help_and_exit (void );
85
+
87
86
88
87
/*
89
88
*
@@ -514,7 +513,8 @@ parse_psql_options(int argc, char *argv[], struct adhoc_opts * options)
514
513
/* unknown option reported by getopt */
515
514
else
516
515
{
517
- explain_help_and_exit ();
516
+ fputs ("Try -? for help.\n" ,stderr );
517
+ exit (EXIT_FAILURE );
518
518
}
519
519
break ;
520
520
#ifndef HAVE_GETOPT_LONG
@@ -525,7 +525,8 @@ parse_psql_options(int argc, char *argv[], struct adhoc_opts * options)
525
525
break ;
526
526
#endif
527
527
default :
528
- explain_help_and_exit ();
528
+ fputs ("Try -? for help.\n" ,stderr );
529
+ exit (EXIT_FAILURE );
529
530
break ;
530
531
}
531
532
}
@@ -639,17 +640,3 @@ showVersion(void)
639
640
puts ("Read the file COPYRIGHT or use the command \\copyright to see the" );
640
641
puts ("usage and distribution terms." );
641
642
}
642
-
643
- static void
644
- explain_help_and_exit (void )
645
- {
646
-
647
- #ifdef WIN32
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
-