Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1af403e

Browse files
committed
Complete options help and put it in less random order.
1 parent 33ab0d9 commit 1af403e

File tree

2 files changed

+38
-7
lines changed

2 files changed

+38
-7
lines changed

doc/src/sgml/ref/ecpg-ref.sgml

+32-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/ecpg-ref.sgml,v 1.28 2003/09/20 20:12:05 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/ecpg-ref.sgml,v 1.29 2003/11/02 12:55:24 petere Exp $
33
PostgreSQL documentation
44
-->
55

@@ -76,6 +76,17 @@ PostgreSQL documentation
7676
</listitem>
7777
</varlistentry>
7878

79+
<varlistentry>
80+
<term><option>-C <replaceable>mode</replaceable></option></term>
81+
<listitem>
82+
<para>
83+
Set a compatibility mode. <replaceable>mode</replaceable> may
84+
be <literal>INFORMIX</literal> or
85+
<literal>INFORMIX_SE</literal>.
86+
</para>
87+
</listitem>
88+
</varlistentry>
89+
7990
<varlistentry>
8091
<term><option>-D <replaceable>symbol</replaceable></option></term>
8192
<listitem>
@@ -85,6 +96,15 @@ PostgreSQL documentation
8596
</listitem>
8697
</varlistentry>
8798

99+
<varlistentry>
100+
<term><option>-i</option></term>
101+
<listitem>
102+
<para>
103+
Parse system include files as well.
104+
</para>
105+
</listitem>
106+
</varlistentry>
107+
88108
<varlistentry>
89109
<term><option>-I <replaceable class="parameter">directory</replaceable></option></term>
90110
<listitem>
@@ -111,6 +131,17 @@ PostgreSQL documentation
111131
</listitem>
112132
</varlistentry>
113133

134+
<varlistentry>
135+
<term><option>-r <replaceable>option</replaceable></option></term>
136+
<listitem>
137+
<para>
138+
Selects a run-time behavior. Currently,
139+
<replaceable>option</replaceable> can only be
140+
<literal>no_indicator</literal>.
141+
</para>
142+
</listitem>
143+
</varlistentry>
144+
114145
<varlistentry>
115146
<term><option>-t</option></term>
116147
<listitem>

src/interfaces/ecpg/preproc/ecpg.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/ecpg.c,v 1.80 2003/10/06 06:44:55 meskes Exp $ */
1+
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/ecpg.c,v 1.81 2003/11/02 12:55:24 petere Exp $ */
22

33
/* New main for ecpg, the PostgreSQL embedded SQL precompiler. */
44
/* (C) Michael Meskes <meskes@postgresql.org> Feb 5th, 1998 */
@@ -41,18 +41,18 @@ help(const char *progname)
4141
printf("Options:\n");
4242
printf(" -c automatically generate C code from embedded SQL code;\n"
4343
" currently this works for EXEC SQL TYPE\n");
44+
printf(" -C MODE set compatibility mode;\n"
45+
" MODE may be one of \"INFORMIX\", \"INFORMIX_SE\"\n");
4446
#ifdef YYDEBUG
4547
printf(" -d generate parser debug output\n");
4648
#endif
47-
printf(" -C MODE set compatibility mode;\n"
48-
" MODE may be one of \"INFORMIX\", \"INFORMIX_SE\"\n");
49-
printf(" -r OPTION specify runtime behaviour;\n"
50-
" OPTION may only be \"no_indicator\"\n");
5149
printf(" -D SYMBOL define SYMBOL\n");
50+
printf(" -i parse system include files as well\n");
5251
printf(" -I DIRECTORY search DIRECTORY for include files\n");
5352
printf(" -o OUTFILE write result to OUTFILE\n");
53+
printf(" -r OPTION specify runtime behaviour;\n"
54+
" OPTION may only be \"no_indicator\"\n");
5455
printf(" -t turn on autocommit of transactions\n");
55-
printf(" -i parse system include files as well\n");
5656
printf(" --help show this help, then exit\n");
5757
printf(" --version output version information, then exit\n");
5858
printf("\nIf no output file is specified, the name is formed by adding .c to the\n"

0 commit comments

Comments
 (0)