/usr/bin/getopt: Difference between revisions

Line 101: Line 101:


==RETURN CODES==
==RETURN CODES==
      getopt returns error code 0 for successful parsing, 1 if getopt(3) returns errors, 2 if it does not
getoptは、解析に成功した場合はエラーコード0を返し、'''[https://manpages.debian.org/bookworm/manpages-dev/getopt.3.en.html getopt]'''(3)がエラーを返した場合は1を返し、自身のパラメータを理解していない場合は2を返し、メモリ不足などの内部エラーが発生した場合は3を返し、-T付きで呼び出された場合は4を返す。
      understand its own parameters, 3 if an internal error occurs like out-of-memory,  and  4  if  it  is
      called with -T.


==EXAMPLES==
==EXAMPLES==