Skip to content

Releases: mbits-libs/args

0.12.3: Compilation issues on various platforms

23 Oct 16:21
Compare
Choose a tag to compare

New features:

There was a de-seventeen-ification atempt, which was scrapped, except for:

  • simple_span, which replaced the std::array used with CTAD.
  • converter<char const*> and converter<char*> are now as invalid as the std::string_view version
  • action_base::names_ vector is now pre-allocated for the incoming name list

Bugfixes:

  • Apple Clang gets the same compilation flags as Clang, or to be exact, it does not get GCC-specific ones.
  • Apple Clang libc++ does not sneak <errno.h>, it is now added to allow compilation
  • MSVC 16.4.4 adds __cpp_impl_three_way_comparison, but cannot compile automatic <=> without verbose inclusion of <compare> header (while later version don't); single instance of this operator was removed for now.
  • MSVC 16.4.4 does not sneak <algorithm>, it is now added, so std::max can compile.

Conan:

This is first version available on conan-center repo, as mbits-args/0.12.3.

0.12.1: Add support for a shared library

18 Oct 08:36
Compare
Choose a tag to compare

New CMake variable, LIBARGS_SHARED, will build libargs.so and args.dll instead of libargs.a and args.lib, respectively (except, of course, args.dll will also produce args.lib).

0.12.0: Support for @answer-files

17 Oct 16:38
Compare
Choose a tag to compare

New feature:

  • support for @answer-files

Fix:

  • change getter from parser::provide_help() to provides_help()

0.11.0: Enums and UTF-8

11 Oct 16:34
Compare
Choose a tag to compare

Small update of library functionality.

New features:

  • support for enums as destination for an argument value
  • support for equal sign, as in --argument=value

Fixes:

  • Using UTF8 length instead of strlen, for better alignment of --help text.
  • Various small fixes for Windows / MSVC

0.10.0: First actual realease

16 Sep 06:02
Compare
Choose a tag to compare

Small library for program argument parser, inspired by Python's argparse, for C++17/20.

  • automatic -h / --help support
  • positional arguments
  • arguments with and without value
  • custom arguments with a callback
  • printer aware of terminal width