GNU Gengetopt

A C function that uses getopt_long function to parse the command line options
Download

GNU Gengetopt Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Lorenzo Bettini
  • Publisher web site:

GNU Gengetopt Tags


GNU Gengetopt Description

A C function that uses getopt_long function to parse the command line options GNU Gengetopt generates a C function that uses getopt_long function to parse the command line options, to validate them and fills a struct.Thus your program can now handle options such as: myprog --input foo.c -o foo.o --no-tabs -i 100 *.classAnd both long options (those that start with --) and short options (start with - and consist of only one character) can be handled. For standards about short and long options you may want to take a look at the GNU Coding Standards . Gengetopt can also generate a function to save the command line options into a file, and a function to read the command line options from a file.Of course, these two kinds of files are compliant. Gengetopt is free software. What's New in This Release: · Enum option values can now contain + and -. · Compilation problems due to the FIX_UNUSED macro not being in the right place were fixed. · --header-output-dir and --src_output-dir command line options were added to store cmdline.h separately from cmdline.c. · Generated functions use prototypes with char ** instead of char *const *.


GNU Gengetopt Related Software