Argument-parsing helpers for C/Unix

前端 未结 7 2168
清酒与你
清酒与你 2020-11-28 04:53

I know of the following:

  • The venerable getopt(3)
  • The extended getopt_long
  • glibc\'s argp parser for Unix-style argum
7条回答
  •  盖世英雄少女心
    2020-11-28 05:25

    I have been developing and using libparamset that is a command-line parameter parsing library written in plain C. It provides:

    • Cross-platform functionality (Linux, OS X, Windows).
    • Configurable parser where each parameter can act differently (powerful and flexible feature).
    • Auto-generated messages for typos, unknown parameters or invalid parameters.
    • Extra functionality to design command-line user interface.
    • Good documentation.

提交回复
热议问题