
|
Go to the first, previous, next, last section, table of contents.
- getopt([key])
-
:: ¥ª¥×¥·¥ç¥ó¤ÎÃͤòÊÖ¤¹.
- return
-
¥ª¥Ö¥¸¥§¥¯¥È
-
¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤Ï, ¸ÇÄê¸Ä¿ô°ú¿ô¤Ç¤·¤«Àë¸À¤Ç¤¤Ê¤¤. ¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤Ç
²ÄÊѸİú¿ô¤ò¼Â¸½¤¹¤ëÊýË¡¤Î°ì¤Ä¤È¤·¤Æ, ¥ª¥×¥·¥ç¥ó¤Ë¤è¤ë°ú¿ô¤Î»ØÄê
¤¬¤¢¤ë (see section ¥ª¥×¥·¥ç¥ó»ØÄê). »ØÄꤵ¤ì¤¿¥ª¥×¥·¥ç¥ó¤ò´Ø¿ôÆâ¤Ç
¼õ¤±¼è¤ë¤¿¤á¤Ë¤³¤Î´Ø¿ô¤òÍѤ¤¤ë.
-
̵°ú¿ô¤Ç¸Æ¤Ó½Ð¤µ¤ì¤¿¾ì¹ç,
getopt() ¤Ï
[[key1,value1],[key2,value2],...] ¤Ê¤ë¥ê¥¹¥È¤òÊÖ¤¹.
¤³¤³¤Ç, key ¤Ï´Ø¿ô¸Æ¤Ó½Ð¤·»þ¤Ë»ØÄꤵ¤ì¤¿¥ª¥×¥·¥ç¥ó, value
¤Ï¤½¤ÎÃͤǤ¢¤ë.
-
´Ø¿ô¸Æ¤Ó½Ð¤·¤ÎºÝ¤Ë key ¤¬¥ª¥×¥·¥ç¥ó¤È¤·¤Æ»ØÄꤵ¤ì¤Æ¤¤¤ë
¾ì¹ç¤Ë¤Ï, ¤½¤ÎÃͤòÊÖ¤¹. ¤â¤·»ØÄ꤬¤Ê¤¤¾ì¹ç¤Ë¤Ï, VOID ·¿¥ª¥Ö¥¸¥§¥¯¥È
(·¿¼±ÊÌ»Ò -1) ¤òÊÖ¤¹.
getopt() ¤¬ÊÖ¤·¤¿Ãͤη¿¤ò type()
¤ÇÄ´¤Ù¤ë¤³¤È¤Ç, ¤½¤Î¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤¿¤«¤É¤¦¤«Ä´¤Ù¤ë¤³¤È¤¬¤Ç¤¤ë.
-
´Ø¿ô¸Æ¤Ó½Ð¤·¤Ë¤ª¤±¤ë¥ª¥×¥·¥ç¥ó¤Î»ØÄê¤Ï, Àµµ¬¤Î°ú¿ô¤Ê¤é¤Ó¤Î¸å¤í¤Ë,
xxx(A,B,C,D|x=X,y=Y,z=Z)
¤È¤¤¤¦É÷¤Ë, `|' ¤Ë³¤¯, key=value ¤Î `,' ¤Ç¶èÀÚ¤é¤ì¤¿
ʤӤòÃÖ¤¯¤³¤È¤Ç¹Ô¤¦.
- »²¾È
-
section ¥ª¥×¥·¥ç¥ó»ØÄê, section
type .
Go to the first, previous, next, last section, table of contents.
|