optparse icon indicating copy to clipboard operation
optparse copied to clipboard

getopt-like command-line parameter parser for RT-Thread

Results 3 optparse issues
Sort by recently updated
recently updated
newest added

长命令参数选项为OPTPARSE_REQUIRED时,无法正确解析 ··· if (option[1]) options->optarg = option + 1; else options->optarg = 0; ···

struct optparse结构体原始定义里面没有argc,optparse()函数根据option==0来判断argv[]是否解析结束了,这样是判断会存在隐患 ```c int optparse(struct optparse *options, const char *optstring) { int type; char *next; char *option = options->argv[options->optind]; options->errmsg[0] = '\0'; options->optopt = 0; options->optarg = 0; if (option...

1、这个里面是个句子是不是有一个动词? 2、migration表达出的意思,与后面汉字不一样 改成这样了“ Getopt command-line parameter parser bases on RT-Thread ”