22
22
*
23
23
*
24
24
* IDENTIFICATION
25
- * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.141 2000/01/29 16:58:44 petere Exp $
25
+ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.142 2000/02/02 13:20:15 petere Exp $
26
26
*
27
27
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
28
28
*
@@ -127,7 +127,7 @@ char g_comment_end[10];
127
127
static void
128
128
help (const char * progname )
129
129
{
130
- printf ("%s dumps a database to a text file.\n\n" , progname );
130
+ printf ("%s dumps a database as a text file.\n\n" , progname );
131
131
puts ( "Usage:" );
132
132
printf (" %s [options] dbname\n\n" , progname );
133
133
puts ( "Options:" );
@@ -589,13 +589,6 @@ main(int argc, char **argv)
589
589
else
590
590
progname = strrchr (argv [0 ], SEP_CHAR ) + 1 ;
591
591
592
- /*
593
- * A note on options:
594
- *
595
- * The -f option was yanked because in the rest of the world (and
596
- * PostgreSQL) it specifies an *input* file. You can use the shell's
597
- * output redirection to achieve the same.
598
- */
599
592
600
593
#ifdef HAVE_GETOPT_LONG
601
594
while ((c = getopt_long (argc , argv , "acdDf:h:nNop:st:uvxzV?" , long_options , & optindex )) != -1 )
@@ -621,9 +614,8 @@ main(int argc, char **argv)
621
614
attrNames = true;
622
615
break ;
623
616
case 'f' :
624
- fprintf (stderr , "%s: The -f option is obsolete. You can achieve the same by writing %s > %s.\n" ,
625
- progname , progname , optarg );
626
- exit (1 );
617
+ filename = optarg ;
618
+ break ;
627
619
case 'h' : /* server host */
628
620
pghost = optarg ;
629
621
break ;
0 commit comments