#include <array>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <optional>
#include <span>
#include <string>
#include <string_view>
#include <tuple>
#include <type_traits>
#include <utility>
#include <vector>
#include "cli/argument.hh"
#include "cli/constraint.hh"
#include "cli/error.hh"
#include "cli/help.hh"
Go to the source code of this file.
|
| static constexpr auto | cli::no_prefix () -> std::uint8_t |
| static constexpr auto | cli::short_prefix () -> std::uint8_t |
| static constexpr auto | cli::long_prefix (std::uint8_t i) -> std::uint8_t |
| static constexpr auto | cli::has_prefix (std::uint8_t p) -> bool |
| static constexpr auto | cli::is_short_prefix (std::uint8_t p) -> bool |
| auto | cli::token_prefix_view (const Token &tok, const TokenizerConfig &cfg) -> std::string_view |
| | Retrieves the matched prefix string for an option token.
|
| template<class OptionLookup, class CommandLookup> |
| auto | cli::tokenize (std::span< const std::string_view > args, OptionLookup option_nargs, CommandLookup is_command, const TokenizerConfig &cfg={}) -> TokenizeResult |
| | Converts a raw argument span into an ordered sequence of typed tokens.
|
| template<ArgumentSpec T> |
| auto | cli::parse (int argc, char *argv[]) -> ParseResult< T > |
| | Convenience free function that parses argc/argv into type T.
|
| template<ArgumentSpec T> |
| auto | cli::parse_or_exit (int argc, char *argv[]) -> T |
| | Parses argc/argv and exits the process on failure.
|
◆ CLI20_TOKEN_STACK_CAPACITY
| #define CLI20_TOKEN_STACK_CAPACITY 32 |