Commit fd09c12e3b3f4e999089a26e8dac2eea31cb9705

Authored by Henry Fredrick Schreiner
1 parent 14a8c553

Adding version macro, preparing for release

CHANGELOG.md
1   -## Version 1.3 (in progress)
  1 +## Version 1.3
2 2  
  3 +* Added a version macro, `CLI11_VERSION`, along with `*_MAJOR`, `*_MINOR`, and `*_PATCH`, for programmatic access to the version.
3 4 * Reworked the way defaults are set and inherited; explicit control given to user with `->option_defaults()` [#48](https://github.com/CLIUtils/CLI11/pull/48)
4 5 * Hidden options now are based on an empty group name, instead of special "hidden" keyword [#48](https://github.com/CLIUtils/CLI11/pull/48)
5 6 * `parse` no longer returns (so `CLI11_PARSE` is always usable) [#37](https://github.com/CLIUtils/CLI11/pull/37)
... ...
include/CLI/CLI.hpp
... ... @@ -6,6 +6,8 @@
6 6 // CLI Library includes
7 7 // Order is important for combiner script
8 8  
  9 +#include "CLI/Version.hpp"
  10 +
9 11 #include "CLI/StringTools.hpp"
10 12  
11 13 #include "CLI/Error.hpp"
... ...
include/CLI/Version.hpp 0 → 100644
  1 +#pragma once
  2 +
  3 +// Distributed under the 3-Clause BSD License. See accompanying
  4 +// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
  5 +
  6 +
  7 +namespace CLI {
  8 +
  9 +// Note that all code in CLI11 must be in a namespace, even if it just a define.
  10 +
  11 +#define CLI11_VERSION_MAJOR 1
  12 +#define CLI11_VERSION_MINOR 3
  13 +#define CLI11_VERSION_PATCH 0
  14 +#define CLI11_VERSION "1.3.0"
  15 +
  16 +
  17 +} // namespace CLI
... ...