Просмотр исходного кода

man: Place short options before long ones

Guillem Jover лет назад: 11
Родитель
Сommit
d0cac1673a
4 измененных файлов с 10 добавлено и 8 удалено
  1. 2 0
      debian/changelog
  2. 6 6
      dselect/main.cc
  3. 1 1
      man/dpkg-mergechangelogs.1
  4. 1 1
      man/dselect.1

+ 2 - 0
debian/changelog

@@ -117,6 +117,8 @@ dpkg (1.18.0) UNRELEASED; urgency=low
   * Document dselect -? option.
   * Document dselect -? option.
   * Capitalize dpkg-parsechangelog(1) option descriptions.
   * Capitalize dpkg-parsechangelog(1) option descriptions.
   * Mark dpkg-parsechangelog(1) --format values in bold.
   * Mark dpkg-parsechangelog(1) --format values in bold.
+  * Place short options before long ones in dpkg-mergechangelogs(1) and
+    dselect(1) man pages.
 
 
   [ Raphaël Hertzog ]
   [ Raphaël Hertzog ]
   * Drop myself from Uploaders.
   * Drop myself from Uploaders.

+ 6 - 6
dselect/main.cc

@@ -187,12 +187,12 @@ usage(const struct cmdinfo *ci, const char *value)
 
 
   printf(_(
   printf(_(
 "Options:\n"
 "Options:\n"
-"  --admindir <directory>     Use <directory> instead of %s.\n"
-"  --expert                   Turn on expert mode.\n"
-"  --debug <file> | -D<file>  Turn on debugging, sending output to <file>.\n"
-"  --color <color-spec>       Configure screen colors.\n"
-"  --colour <color-spec>      Ditto.\n"
-"\n"), ADMINDIR);
+"      --admindir <directory>       Use <directory> instead of %s.\n"
+"      --expert                     Turn on expert mode.\n"
+"  -D, --debug <file>               Turn on debugging, send output to <file>.\n"
+"      --color <color-spec>         Configure screen colors.\n"
+"      --colour <color-spec>        Ditto.\n"
+), ADMINDIR);
 
 
   printf(_(
   printf(_(
 "  -?, --help                       Show this help message.\n"
 "  -?, --help                       Show this help message.\n"

+ 1 - 1
man/dpkg-mergechangelogs.1

@@ -43,7 +43,7 @@ content of the entry).
 .
 .
 .SH OPTIONS
 .SH OPTIONS
 .TP
 .TP
-.BR \-\-merge\-prereleases ", " \-m
+.BR \-m ", " \-\-merge\-prereleases
 Drop the part after the last tilde in the version number when doing
 Drop the part after the last tilde in the version number when doing
 version comparison to identify if two entries are supposed to be
 version comparison to identify if two entries are supposed to be
 the same or not.
 the same or not.

+ 1 - 1
man/dselect.1

@@ -68,7 +68,7 @@ Changes the directory where the dpkg `\fIstatus\fP', `\fIavailable\fP' and
 similar files are located. This defaults to \fI/var/lib/dpkg\fP
 similar files are located. This defaults to \fI/var/lib/dpkg\fP
 and normally there shouldn't be any need to change it.
 and normally there shouldn't be any need to change it.
 .TP
 .TP
-.BI \-\-debug " file \fR|\fP " \-D file
+.BR \-D "\fIfile\fP, " \-\-debug " \fIfile\fP"
 Turn on debugging. Debugging information is sent to \fIfile\fP.
 Turn on debugging. Debugging information is sent to \fIfile\fP.
 .TP
 .TP
 .B \-\-expert
 .B \-\-expert