version 1.8, 2001/07/23 02:28:17 |
version 1.9, 2002/07/15 07:59:27 |
|
|
@comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/misc.texi,v 1.7 2001/03/12 05:01:18 noro Exp $ |
@comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/misc.texi,v 1.8 2001/07/23 02:28:17 noro Exp $ |
\BJP |
\BJP |
@node $B$=$NB>(B,,, $BAH$_9~$_H!?t(B |
@node $B$=$NB>(B,,, $BAH$_9~$_H!?t(B |
@section $B$=$NB>(B |
@section $B$=$NB>(B |
Line 1007 of the install directory. |
|
Line 1007 of the install directory. |
|
@findex getopt |
@findex getopt |
|
|
@table @t |
@table @t |
@item getopt(@var{key}) |
@item getopt([@var{key}]) |
\JP :: $B%*%W%7%g%s$NCM$rJV$9(B. |
\JP :: $B%*%W%7%g%s$NCM$rJV$9(B. |
\EG :: Returns the value of an option. |
\EG :: Returns the value of an option. |
@end table |
@end table |
Line 1026 of the install directory. |
|
Line 1026 of the install directory. |
|
$B$,$"$k(B (@pxref{$B%*%W%7%g%s;XDj(B}). $B;XDj$5$l$?%*%W%7%g%s$r4X?tFb$G(B |
$B$,$"$k(B (@pxref{$B%*%W%7%g%s;XDj(B}). $B;XDj$5$l$?%*%W%7%g%s$r4X?tFb$G(B |
$B<u$1<h$k$?$a$K$3$N4X?t$rMQ$$$k(B. |
$B<u$1<h$k$?$a$K$3$N4X?t$rMQ$$$k(B. |
@item |
@item |
|
$BL50z?t$G8F$S=P$5$l$?>l9g(B, @code{getopt()} $B$O(B |
|
@code{[[key1,value1],[key2,value2],...]} $B$J$k%j%9%H$rJV$9(B. |
|
$B$3$3$G(B, @code{key} $B$O4X?t8F$S=P$7;~$K;XDj$5$l$?%*%W%7%g%s(B, @code{value} |
|
$B$O$=$NCM$G$"$k(B. |
|
@item |
$B4X?t8F$S=P$7$N:]$K(B @var{key} $B$,%*%W%7%g%s$H$7$F;XDj$5$l$F$$$k(B |
$B4X?t8F$S=P$7$N:]$K(B @var{key} $B$,%*%W%7%g%s$H$7$F;XDj$5$l$F$$$k(B |
$B>l9g$K$O(B, $B$=$NCM$rJV$9(B. $B$b$7;XDj$,$J$$>l9g$K$O(B, VOID $B7?%*%V%8%'%/%H(B |
$B>l9g$K$O(B, $B$=$NCM$rJV$9(B. $B$b$7;XDj$,$J$$>l9g$K$O(B, VOID $B7?%*%V%8%'%/%H(B |
($B7?<1JL;R(B -1) $B$rJV$9(B. @code{getopt()} $B$,JV$7$?CM$N7?$r(B @code{type()} |
($B7?<1JL;R(B -1) $B$rJV$9(B. @code{getopt()} $B$,JV$7$?CM$N7?$r(B @code{type()} |
Line 1047 must be equal to that in the declaration of the functi |
|
Line 1052 must be equal to that in the declaration of the functi |
|
A function with indefinite number of arguments can be realized |
A function with indefinite number of arguments can be realized |
by using @var{options} (@pxref{option}). |
by using @var{options} (@pxref{option}). |
The value of a specified option is retrieved by @code{getopt}. |
The value of a specified option is retrieved by @code{getopt}. |
|
@item |
|
If @code{getopt()} is called with no argument, then it returns a list |
|
@code{[[key1,value1],[key2,value2],...]}. In the list, each @code{key} |
|
is an option which was specified when the function executing @code{getopt} |
|
was invoked, and @code{value} is the value of the option. |
@item |
@item |
If an option @var{key} is specified upon a function call, @code{getopt} |
If an option @var{key} is specified upon a function call, @code{getopt} |
return the value of the option. If such an option is not specified, |
return the value of the option. If such an option is not specified, |