Euphoria
argparse.cc File Reference
#include "core/argparse.h"
#include <iostream>
#include <iomanip>
#include <algorithm>
#include "base/cint.h"
#include "base/stringutils.h"
#include "base/stringmerger.h"
#include "core/table.h"
#include "core/wordwrap.h"
#include "base/functional.h"

Go to the source code of this file.

Namespaces

 eu
 
 eu::core
 
 eu::core::argparse
 

Functions

std::string eu::core::argparse::to_string (const ParseResult &pr)
 
bool eu::core::argparse::operator== (const ParseResult &lhs, const ParseResult &rhs)
 
bool eu::core::argparse::operator!= (const ParseResult &lhs, const ParseResult &rhs)
 
std::string eu::core::argparse::to_string (const eu::core::argparse::NameAndArguments &args)
 
void eu::core::argparse::print_parse_error (Runner *runner, ParserBase *base, const std::string &error_message)
 
std::string eu::core::argparse::create_default_nargs (const Name &name)
 
int eu::core::argparse::parse_from_main (Parser *parser, int argc, char *argv[])
 helper function for parsing directly from main More...
 

Variable Documentation

◆ base

ParserBase* base = nullptr

Definition at line 887 of file argparse.cc.

◆ found_subparser

bool found_subparser = false

Definition at line 890 of file argparse.cc.

◆ positional_index

int positional_index = 0

Definition at line 889 of file argparse.cc.

◆ runner

argparse::Runner* runner = nullptr

Definition at line 888 of file argparse.cc.