mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-29 20:23:55 +00:00
The extra leading `"CLI/"` part of include directives prevents the inclusion of `CLI.hpp` from a relative directory without an extra `-I` or `/I` compiler directive, and makes it harder to make CLI11 part of a larger codebase. This is a regression of #475.
30 lines
677 B
C++
30 lines
677 B
C++
// 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 "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
|