2222 *
2323 *
2424 * 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 $
2626 *
2727 * Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
2828 *
@@ -127,7 +127,7 @@ charg_comment_end[10];
127127static void
128128help (const char * progname )
129129{
130- printf ("%s dumps a databaseto a text file.\n\n" ,progname );
130+ printf ("%s dumps a databaseas a text file.\n\n" ,progname );
131131puts ("Usage:" );
132132printf (" %s [options] dbname\n\n" ,progname );
133133puts ("Options:" );
@@ -589,13 +589,6 @@ main(int argc, char **argv)
589589else
590590progname = strrchr (argv [0 ],SEP_CHAR )+ 1 ;
591591
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- */
599592
600593#ifdef HAVE_GETOPT_LONG
601594while ((c = getopt_long (argc ,argv ,"acdDf:h:nNop:st:uvxzV?" ,long_options ,& optindex ))!= -1 )
@@ -621,9 +614,8 @@ main(int argc, char **argv)
621614attrNames = true;
622615break ;
623616case '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 ;
627619case 'h' :/* server host */
628620pghost = optarg ;
629621break ;