inLimbo
TUI Music Player that keeps you in Limbo.
 
Loading...
Searching...
No Matches
CommandLineArgs Class Reference

#include <cmd-line-args.hpp>

Public Member Functions

 CommandLineArgs (int argc, char *argv[], const std::vector< std::string > &allowedFlags={})
 
std::string get (const std::string &flag, const std::string &defaultValue="") const
 
bool hasFlag (const std::string &flag) const
 
const std::vector< std::string > & getPositionalArgs () const
 
void printUsage (const std::string &programName) const
 

Constructor & Destructor Documentation

◆ CommandLineArgs()

CommandLineArgs::CommandLineArgs ( int argc,
char * argv[],
const std::vector< std::string > & allowedFlags = {} )
inline

Member Function Documentation

◆ get()

std::string CommandLineArgs::get ( const std::string & flag,
const std::string & defaultValue = "" ) const
inline

◆ getPositionalArgs()

const std::vector< std::string > & CommandLineArgs::getPositionalArgs ( ) const
inline

◆ hasFlag()

bool CommandLineArgs::hasFlag ( const std::string & flag) const
inline

◆ printUsage()

void CommandLineArgs::printUsage ( const std::string & programName) const
inline

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