我一直在使用python getopt进行解析,不管是短的还是长的,它工作得很好。现在我需要在getopt函数中添加更多的短变量,如果我需要多个字符作为getopt:short,它看起来会更好。getopt.getopt(argv,"hf:c:d:pv:pz:","")
在这里,我需要访问pv和pz作为单独的命令行参数,而不是getopt将其读取为'p with no args','v with
我正在努力学习使用getopt_long。> /* for getopt_long; POSIX standard getopt is in unistd.h */
int main (int argc, char **argv) {getopt returned character code 0%o ??这是getopt的限制吗?如果我弄错了,那么如何在getopt_long (""abc:d:012"")的第三个