getopt: fix optional argument processing
Processing an option character with optional argument fails if the option is last on the command line. This happens because the if (optind >= argc) check runs first before testing for optional argument.
Showing
想要评论请 注册 或 登录