AsmGrader 0.0.0
Loading...
Searching...
No Matches
asmgrader::CommandLineArgs Class Reference

Just a wrapper around argparse for now. More...

#include <cl_args.hpp>

Public Member Functions

 CommandLineArgs (std::span< const char * > args)
 
Expected< ProgramOptions, std::string > parse ()
 Returns: Success - Expected<ProgramOptions> with parsed program options structure Failure - Expected<std::string> with failure essage.
 
std::string usage_message () const
 
std::string help_message () const
 
std::optional< ProgramOptionsget_options () const
 

Detailed Description

Just a wrapper around argparse for now.

Constructor & Destructor Documentation

◆ CommandLineArgs()

asmgrader::CommandLineArgs::CommandLineArgs ( std::span< const char * > args)
explicit

Member Function Documentation

◆ get_options()

std::optional< ProgramOptions > asmgrader::CommandLineArgs::get_options ( ) const

◆ help_message()

std::string asmgrader::CommandLineArgs::help_message ( ) const

◆ parse()

Expected< ProgramOptions, std::string > asmgrader::CommandLineArgs::parse ( )

Returns: Success - Expected<ProgramOptions> with parsed program options structure Failure - Expected<std::string> with failure essage.

◆ usage_message()

std::string asmgrader::CommandLineArgs::usage_message ( ) const

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