ChainCLI
A modern C++20 command-line interface library
Loading...
Searching...
No Matches
cli::commands::FlaggedArgumentBase Class Reference

Base class for flag-like command-line arguments. More...

#include <argument.h>

Inheritance diagram for cli::commands::FlaggedArgumentBase:
cli::commands::FlagArgument cli::commands::OptionArgumentBase cli::commands::OptionArgument< T >

Public Member Functions

constexpr std::string_view getShortName () const noexcept
 Get the short name of the argument.
 

Protected Member Functions

 FlaggedArgumentBase (std::string_view shortName)
 

Protected Attributes

std::string shortName
 

Detailed Description

Base class for flag-like command-line arguments.

Member Function Documentation

◆ getShortName()

constexpr std::string_view cli::commands::FlaggedArgumentBase::getShortName ( ) const
inlineconstexprnoexcept

Get the short name of the argument.

Returns
The short name of the argument.

The documentation for this class was generated from the following file: