]> granicus.if.org Git - postgresql/commitdiff
pg_ctl: Add long option for -o
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 19 Oct 2016 16:00:00 +0000 (12:00 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 19 Oct 2016 12:48:48 +0000 (08:48 -0400)
Now all normally used options are covered by long options as well.

doc/src/sgml/ref/pg_ctl-ref.sgml
src/bin/pg_ctl/pg_ctl.c

index ea0a6353d8e2d07ba863f111a555445107f6bf0d..5fb689869987aa947f56ce6adf4badd4459b6de2 100644 (file)
@@ -301,6 +301,7 @@ PostgreSQL documentation
 
      <varlistentry>
       <term><option>-o <replaceable class="parameter">options</replaceable></option></term>
+      <term><option>--options=<replaceable class="parameter">options</replaceable></option></term>
       <listitem>
        <para>
         Specifies options to be passed directly to the
@@ -316,6 +317,7 @@ PostgreSQL documentation
 
      <varlistentry>
       <term><option>-o <replaceable class="parameter">initdb-options</replaceable></option></term>
+      <term><option>--options=<replaceable class="parameter">initdb-options</replaceable></option></term>
       <listitem>
        <para>
         Specifies options to be passed directly to the
index 7d97232613accea215207804d5c14af615978a7c..4b476022c0ebacb6f6be5c8f237c9cfee7b8570e 100644 (file)
@@ -1972,7 +1972,7 @@ do_help(void)
        printf(_("  -c, --core-files       not applicable on this platform\n"));
 #endif
        printf(_("  -l, --log=FILENAME     write (or append) server log to FILENAME\n"));
-       printf(_("  -o OPTIONS             command line options to pass to postgres\n"
+       printf(_("  -o, --options=OPTIONS  command line options to pass to postgres\n"
         "                         (PostgreSQL server executable) or initdb\n"));
        printf(_("  -p PATH-TO-POSTGRES    normally not necessary\n"));
        printf(_("\nOptions for stop or restart:\n"));
@@ -2171,6 +2171,7 @@ main(int argc, char **argv)
                {"log", required_argument, NULL, 'l'},
                {"mode", required_argument, NULL, 'm'},
                {"pgdata", required_argument, NULL, 'D'},
+               {"options", required_argument, NULL, 'o'},
                {"silent", no_argument, NULL, 's'},
                {"timeout", required_argument, NULL, 't'},
                {"core-files", no_argument, NULL, 'c'},