// Copyright (c) 2017-2023, 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 #include // [CLI11:public_includes:end] #include namespace CLI { // [CLI11:argv_hpp:verbatim] namespace detail { #ifdef _WIN32 /// Decode and return UTF-8 argv from GetCommandLineW. CLI11_INLINE std::vector compute_win32_argv(); #endif } // namespace detail /// argc as passed in to this executable. CLI11_INLINE int argc(); /// argv as passed in to this executable, converted to utf-8 on Windows. CLI11_INLINE const char *const *argv(); // [CLI11:argv_hpp:end] } // namespace CLI #ifndef CLI11_COMPILE #include "impl/Argv_inl.hpp" #endif