Fancy argparser
Single file argument parser for c++
Loading...
Searching...
No Matches
ARGPARSE_NAMESPACE_NAME::PositionalArgSpec Struct Reference

Aggregate description of a positional argument, for keyword-style construction with C++20 designated initializers. More...

#include <argparse.h>

Public Attributes

std::string name = ""
int nargs = 1
ArgTypeCast type = ArgTypeCast::e_String
bool required = true
std::string help = ""

Detailed Description

Aggregate description of a positional argument, for keyword-style construction with C++20 designated initializers.

See NamedArgSpec.

Definition at line 629 of file argparse.h.

Member Data Documentation

◆ help

std::string ARGPARSE_NAMESPACE_NAME::PositionalArgSpec::help = ""

Definition at line 635 of file argparse.h.

◆ name

std::string ARGPARSE_NAMESPACE_NAME::PositionalArgSpec::name = ""

Definition at line 631 of file argparse.h.

◆ nargs

int ARGPARSE_NAMESPACE_NAME::PositionalArgSpec::nargs = 1

Definition at line 632 of file argparse.h.

◆ required

bool ARGPARSE_NAMESPACE_NAME::PositionalArgSpec::required = true

Definition at line 634 of file argparse.h.

◆ type

ArgTypeCast ARGPARSE_NAMESPACE_NAME::PositionalArgSpec::type = ArgTypeCast::e_String

Definition at line 633 of file argparse.h.


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