在ruby-doc.org page 我發現有關命令行選項/參數解析(getopt的庫)執行以下操作:命令行錯誤消息的「POSIX定義格式」是什麼?哪個標準?
返回在POSIX定義的格式的適當的錯誤消息。如果沒有發生錯誤,則返回nil。
什麼是POSIX定義的命令行錯誤消息格式?哪個POSIX標準是?
編輯:
我必須澄清,我感興趣的是標準/推薦的錯誤消息時 解析命令行參數/選項。
在下面的鏈接(答案),我發現只有提的這個錯誤格式的getopt:
"%s: illegal option -- %c\n", <program name>, <option character>
"%s: option requires an argument -- %c\n", <program name>, <option character>
這一切是它?