File args.h

Parent directory (c/fmdt)

Command Line Interface (CLI) functions.

Definition (c/fmdt/args.h)

Detailed Description

Note that this simple CLI library follows POSIX conventions:

  • single character arguments start with the ‘-’ character (ex.: “-h”),

  • multiple characters arguments start with the “–” characters (ex.: “–help”),

  • argument and its value is separated with a blank character (ex.: “–min-val 12”),

  • for boolean arguments, no argument is expected (ex.: if “-h” is found, then the help is printed).

Includes

Functions