Class CommandLineParser

Class Documentation

class CommandLineParser

A class to parse the neXtSIM_DG command line.

Public Functions

CommandLineParser(int argc, char *argv[])

Parse the command line for command line options.

Parameters:
  • argc – the count of passed arguments.

  • argv – The array of C strings passed as arguments.

virtual ~CommandLineParser() = default
std::vector<std::string> getConfigFileNames()

Return a std::vector of the file names declared as config files on the command line, in order.

Return a std::vector of the file names declared as config files on the command line

inline std::string configHelp()

Returns the name of any module for which help was requested.

Public Static Attributes

static const std::string allModuleString = ConfigurationHelpPrinter::allStr

The special string denoting help for all available modules.

static const std::string availableModuleString = ConfigurationHelpPrinter::availStr

The special string denoting a request for listing available modules.