arg_router
1.4.0
C++ command line argument parsing and routing
|
#include <arg_router/policy/display_name.hpp>
Public Types | |
using | string_type = S |
Public Member Functions | |
constexpr | display_name_t ([[maybe_unused]] S str={}) noexcept |
Static Public Member Functions | |
constexpr static std::string_view | display_name () noexcept |
Represents the display name of a node.
A display name is a label given to a node that appears in the help output, but is not used in the token parsing.
In the default validator, this policy is not allowed to be used with long_name and short_name - as we shouldn't be trying to confuse the user...
If using C++17 then use the template variable helper with the S_
macro; for C++20 and higher, use the constructor directly with a compile-time string literal:
S | Compile-time string |
Definition at line 29 of file display_name.hpp.
using arg_router::policy::display_name_t< S >::string_type = S |
String type.
Definition at line 33 of file display_name.hpp.
|
inlineexplicitconstexprnoexcept |
|
inlinestaticconstexprnoexcept |