The design and implementation of a package, cmdlineparse, for processing command-line arguments are presented. The package uses a definition of command line arguments that is subset of that used in the Unix Bourne shell. The package eliminates the need for traditional command-line argument processing and results in shorter, more consistent handling of arguments. Program correctness is improved as each argument is typed and validated. The package is written in C under Unix System V.
展开▼
机译:介绍了用于处理命令行参数的软件包cmdlineparse的设计和实现。该软件包使用命令行参数的定义,该定义是Unix Bourne Shell中使用的命令行参数的子集。该软件包消除了对传统命令行参数处理的需求,并导致更短,更一致的参数处理。键入和验证每个参数后,程序的正确性得到了提高。该软件包在Unix System V下用C编写。
展开▼