summaryrefslogtreecommitdiffstats
path: root/usr.bin/getopt
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-01-18 13:43:56 +0000
committerru <ru@FreeBSD.org>2005-01-18 13:43:56 +0000
commit7f3c7f0d461522fe0390e72d21fa729bed8807bf (patch)
tree4ff679e02e4f5503cdcbf47f6fd1aa832ff79d14 /usr.bin/getopt
parent8e249383f9b2938ac2233decd80969cc4cd3c59e (diff)
downloadFreeBSD-src-7f3c7f0d461522fe0390e72d21fa729bed8807bf.zip
FreeBSD-src-7f3c7f0d461522fe0390e72d21fa729bed8807bf.tar.gz
Sort sections.
Diffstat (limited to 'usr.bin/getopt')
-rw-r--r--usr.bin/getopt/getopt.112
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/getopt/getopt.1 b/usr.bin/getopt/getopt.1
index 7d34e4e..ef4c395 100644
--- a/usr.bin/getopt/getopt.1
+++ b/usr.bin/getopt/getopt.1
@@ -35,6 +35,12 @@ preceded by a
.Ql \-
and in its own shell argument;
each option argument is also in its own shell argument.
+.Sh EXIT STATUS
+The
+.Nm
+utility prints an error message on the standard error output and exits with
+status > 0 when it encounters an option letter not included in
+.Ar optstring .
.Sh EXAMPLES
The following code fragment shows how one might process the arguments
for a command that can take the options
@@ -88,12 +94,6 @@ cmd \-a \-oarg \-\- file file
.Xr getopts 1 ,
.Xr sh 1 ,
.Xr getopt 3
-.Sh EXIT STATUS
-The
-.Nm
-utility prints an error message on the standard error output and exits with
-status > 0 when it encounters an option letter not included in
-.Ar optstring .
.Sh HISTORY
Written by
.An Henry Spencer ,
OpenPOWER on IntegriCloud