mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-05-02 05:33:53 +00:00
Adding version macro, preparing for release
This commit is contained in:
parent
14a8c55301
commit
fd09c12e3b
@ -1,5 +1,6 @@
|
||||
## Version 1.3 (in progress)
|
||||
## Version 1.3
|
||||
|
||||
* Added a version macro, `CLI11_VERSION`, along with `*_MAJOR`, `*_MINOR`, and `*_PATCH`, for programmatic access to the version.
|
||||
* Reworked the way defaults are set and inherited; explicit control given to user with `->option_defaults()` [#48](https://github.com/CLIUtils/CLI11/pull/48)
|
||||
* Hidden options now are based on an empty group name, instead of special "hidden" keyword [#48](https://github.com/CLIUtils/CLI11/pull/48)
|
||||
* `parse` no longer returns (so `CLI11_PARSE` is always usable) [#37](https://github.com/CLIUtils/CLI11/pull/37)
|
||||
|
@ -6,6 +6,8 @@
|
||||
// CLI Library includes
|
||||
// Order is important for combiner script
|
||||
|
||||
#include "CLI/Version.hpp"
|
||||
|
||||
#include "CLI/StringTools.hpp"
|
||||
|
||||
#include "CLI/Error.hpp"
|
||||
|
17
include/CLI/Version.hpp
Normal file
17
include/CLI/Version.hpp
Normal file
@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
// Distributed under the 3-Clause BSD License. See accompanying
|
||||
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
|
||||
|
||||
|
||||
namespace CLI {
|
||||
|
||||
// Note that all code in CLI11 must be in a namespace, even if it just a define.
|
||||
|
||||
#define CLI11_VERSION_MAJOR 1
|
||||
#define CLI11_VERSION_MINOR 3
|
||||
#define CLI11_VERSION_PATCH 0
|
||||
#define CLI11_VERSION "1.3.0"
|
||||
|
||||
|
||||
} // namespace CLI
|
Loading…
x
Reference in New Issue
Block a user