-
-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2139 from joto/update-cli11
Update included CLI11 library to version 2.4.1
- Loading branch information
Showing
28 changed files
with
1,890 additions
and
491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Source: https://github.com/CLIUtils/CLI11 | ||
Revision: v2.3.2 | ||
Revision: v2.4.1 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright (c) 2017-2024, University of Cincinnati, developed by Henry Schreiner | ||
// under NSF AWARD 1414736 and by the respective contributors. | ||
// All rights reserved. | ||
// | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#pragma once | ||
|
||
// [CLI11:public_includes:set] | ||
#include <string> | ||
#include <vector> | ||
// [CLI11:public_includes:end] | ||
|
||
#include <CLI/Macros.hpp> | ||
|
||
namespace CLI { | ||
// [CLI11:argv_hpp:verbatim] | ||
namespace detail { | ||
#ifdef _WIN32 | ||
/// Decode and return UTF-8 argv from GetCommandLineW. | ||
CLI11_INLINE std::vector<std::string> compute_win32_argv(); | ||
#endif | ||
} // namespace detail | ||
// [CLI11:argv_hpp:end] | ||
} // namespace CLI | ||
|
||
#ifndef CLI11_COMPILE | ||
#include "impl/Argv_inl.hpp" | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// Copyright (c) 2017-2024, University of Cincinnati, developed by Henry Schreiner | ||
// under NSF AWARD 1414736 and by the respective contributors. | ||
// All rights reserved. | ||
// | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#pragma once | ||
|
||
#include <CLI/Macros.hpp> | ||
|
||
// [CLI11:public_includes:set] | ||
#include <string> | ||
// [CLI11:public_includes:end] | ||
|
||
// [CLI11:encoding_includes:verbatim] | ||
#ifdef CLI11_CPP17 | ||
#include <string_view> | ||
#endif // CLI11_CPP17 | ||
|
||
#if defined CLI11_HAS_FILESYSTEM && CLI11_HAS_FILESYSTEM > 0 | ||
#include <filesystem> | ||
#include <string_view> // NOLINT(build/include) | ||
#endif // CLI11_HAS_FILESYSTEM | ||
// [CLI11:encoding_includes:end] | ||
|
||
namespace CLI { | ||
// [CLI11:encoding_hpp:verbatim] | ||
|
||
/// Convert a wide string to a narrow string. | ||
CLI11_INLINE std::string narrow(const std::wstring &str); | ||
CLI11_INLINE std::string narrow(const wchar_t *str); | ||
CLI11_INLINE std::string narrow(const wchar_t *str, std::size_t size); | ||
|
||
/// Convert a narrow string to a wide string. | ||
CLI11_INLINE std::wstring widen(const std::string &str); | ||
CLI11_INLINE std::wstring widen(const char *str); | ||
CLI11_INLINE std::wstring widen(const char *str, std::size_t size); | ||
|
||
#ifdef CLI11_CPP17 | ||
CLI11_INLINE std::string narrow(std::wstring_view str); | ||
CLI11_INLINE std::wstring widen(std::string_view str); | ||
#endif // CLI11_CPP17 | ||
|
||
#if defined CLI11_HAS_FILESYSTEM && CLI11_HAS_FILESYSTEM > 0 | ||
/// Convert a char-string to a native path correctly. | ||
CLI11_INLINE std::filesystem::path to_path(std::string_view str); | ||
#endif // CLI11_HAS_FILESYSTEM | ||
|
||
// [CLI11:encoding_hpp:end] | ||
} // namespace CLI | ||
|
||
#ifndef CLI11_COMPILE | ||
#include "impl/Encoding_inl.hpp" | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.