Cargs Versions Save

A lightweight cross-platform getopt alternative that is tested on Linux, Windows, FreeBSD and macOS. Command line argument parser library for C/C++. Can be used to parse argv and argc parameters.

v1.1.0

4 months ago

Bugfixes

  • added boundary check for systems where last argv is not null (thanks to @Christer-Ekholm)

Enhancements

  • cargs is now in the clib ecosystem (thanks to @jwerle).
  • additional example for using cargs non-option parameters (feedback by @markmaker)
  • removed LGTM badge from README since it is no longer available
  • added pkg-config file in cmake installations
  • changed README line endings to unix (#7 reported by @davidebeatrici)
  • demo can now be built using the main cmake (#9 implemented by @marcastel)
  • renamed cag_option_prepare to cag_option_init (old name still available for now but deprecated).
  • renamed cag_option_get to cag_option_get_identifier (old name still available for now but deprecated).

Features

  • added cag_option_get_error_index, cag_option_get_error_letter, and cag_option_print_error (thanks to @komothecat).
  • added pkg-config generation in cmake

v1.0.3

2 years ago

Bugfixes

  • Added missing CWK_SHARED macro for shared library builds

v1.0.2

2 years ago

Bugfixes

  • Option indention works now even if the option description is large

Enhancements

  • CMake install instructions have been added
  • Builds are now tested against FreeBSD and a newer Ubuntu (Focal Fossa)

v1.0.1

3 years ago

Bugfixes

  • Fixed order of non-option arguments (#2 submitted by @ZornsLemma)
  • Added overriding of dependencies in meson (by @mo7sen)

Enhancements

  • Added extern C for C++ projects

v1.0.0

3 years ago

This is the first stable release of cargs. It contains basic functionality to parse command line arguments.