libcxxopts-tests

[brief]

C++ command line option parser library, tests

This is the build2 package for cxxopts, a lightweight C++ command line option parser library.

Usage

To use libcxxopts in your project, add the following configurations to the respective files after you have gained access to a build2 package repository that contains it.

manifest

To make cxxopts available for import, add the following dependency to the manifest of each package in your project that requires it, adjusting the version constraint as appropriate.

depends: libcxxopts ^3.3.1

buildfile

To import the contained library, use the following declaration in your buildfile.

import cxxopts = libcxxopts%lib{cxxopts}

C++ Header Inclusion

Finally, include the cxxopts header in your C++ source code.

#include <cxxopts.hpp>

Configuration Variables

Unicode Support

config [bool] config.libcxxopts.use_unicode ?= false

Unicode functionality in cxxopts is based on the ICU library. It will be added as interface dependency to the header-only library if this config variable is set to true.

license MIT
project cxxopts
url github.com/jarro2783/cxxopts
doc-url github.com/jarro2783/cxxopts/wiki
src-url github.com/jarro2783/cxxopts
topics option parserpositional arguments
1 Version
version 3.3.1
repository https://pkg.cppget.org/1/testing
depends 1; catch2
reviews +1