Commit fd09c12e3b3f4e999089a26e8dac2eea31cb9705
1 parent
14a8c553
Adding version macro, preparing for release
Showing
3 changed files
with
21 additions
and
1 deletions
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
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 | ... | ... |