version 1.2, 1996/06/26 05:33:44 |
version 1.3, 1998/09/26 19:54:50 |
|
|
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm set \-\- \`getopt optstring $*\` |
.Nm set \-\- \`getopt optstring $*\` |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm Getopt |
.Nm getopt |
is used to break up options in command lines for easy parsing by |
is used to break up options in command lines for easy parsing by |
shell procedures, and to check for legal options. |
shell procedures, and to check for legal options. |
.Op Optstring |
.Op Optstring |
|
|
The special option |
The special option |
.Dq \-\- |
.Dq \-\- |
is used to delimit the end of the options. |
is used to delimit the end of the options. |
.Nm Getopt |
.Nm getopt |
will place |
will place |
.Dq \-\- |
.Dq \-\- |
in the arguments at the end of the options, |
in the arguments at the end of the options, |
|
|
.Xr sh 1 , |
.Xr sh 1 , |
.Xr getopt 3 |
.Xr getopt 3 |
.Sh DIAGNOSTICS |
.Sh DIAGNOSTICS |
.Nm Getopt |
.Nm getopt |
prints an error message on the standard error output when it |
prints an error message on the standard error output when it |
encounters an option letter not included in |
encounters an option letter not included in |
.Op optstring . |
.Op optstring . |