getopt
getopt
.
getopt()
is called with no argument, then it returns a list
[[key1,value1],
[key2,value2],...]
.
In the list, each key
is an option which was specified when the function executing getopt
was invoked, and value
is the value of the option.
getopt
return the value of the option. If such an option is not specified,
the it returns an object of VOID type whose object identifier is
-1. By examining the type of the returned value with type()
,
one knows whether the option is set or not.
xxx(A,B,C,D|x=X,y=Y,z=Z)That is, the options are specified by a sequence of key=value seperated by `,', after `|'.
type
.
Go to the first, previous, next, last section, table of contents.