summaryrefslogtreecommitdiffstats
path: root/misc-utils/getopt.1
diff options
context:
space:
mode:
authorBenno Schulenberg2014-12-14 20:45:28 +0100
committerKarel Zak2014-12-19 09:57:22 +0100
commit1d855f188f45814cf3bba1172cd4fab025b2540c (patch)
treeb476029c1b9668615237e29b2537be0f739e9a43 /misc-utils/getopt.1
parenttextual: do not start option descriptions with a capital (diff)
downloadkernel-qcow2-util-linux-1d855f188f45814cf3bba1172cd4fab025b2540c.tar.gz
kernel-qcow2-util-linux-1d855f188f45814cf3bba1172cd4fab025b2540c.tar.xz
kernel-qcow2-util-linux-1d855f188f45814cf3bba1172cd4fab025b2540c.zip
docs: improve the sorting of the options in the man page of getopt
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'misc-utils/getopt.1')
-rw-r--r--misc-utils/getopt.118
1 files changed, 9 insertions, 9 deletions
diff --git a/misc-utils/getopt.1 b/misc-utils/getopt.1
index 7fd872012..6758d2796 100644
--- a/misc-utils/getopt.1
+++ b/misc-utils/getopt.1
@@ -1,4 +1,4 @@
-.TH GETOPT "1" "June 2012" "util-linux" "User Commands"
+.TH GETOPT "1" "December 2014" "util-linux" "User Commands"
.SH NAME
getopt \- parse command options (enhanced)
.SH SYNOPSIS
@@ -69,7 +69,7 @@ for more information).
.PP
Traditional implementations of
.BR getopt (1)
-are unable to cope with whitespace and other (shell\-specific)
+are unable to cope with whitespace and other (shell-specific)
special characters in arguments and non\-option parameters. To solve
this problem, this implementation can generate quoted output which
must once again be interpreted by the shell (usually by using the
@@ -151,13 +151,6 @@ conventions are used. Valid arguments are currently
and
.RB ' tcsh '.
.TP
-.BR \-u , " \-\-unquoted"
-Do not quote the output. Note that whitespace and special
-(shell\-dependent) characters can cause havoc in this mode (like they
-do with other
-.BR getopt (1)
-implementations).
-.TP
.BR \-T , " \-\-test"
Test if your
.BR getopt (1)
@@ -170,6 +163,13 @@ is set, will return
.RB ' \-\- '
and error status 0.
.TP
+.BR \-u , " \-\-unquoted"
+Do not quote the output. Note that whitespace and special
+(shell-dependent) characters can cause havoc in this mode (like they
+do with other
+.BR getopt (1)
+implementations).
+.TP
.BR \-V , " \-\-version"
Display version information and exit. No other output is generated.
.SH PARSING