PhoenixMock  1.8.7
Tools to split/merge/print mock used in Phoenix
main.cpp File Reference
#include "OptionParser.h"
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

OptionParser createOptionParser ()
 Create the OptionParser of this program. More...
 
int main (int argc, char **argv)
 

Function Documentation

◆ createOptionParser()

OptionParser createOptionParser ( )

Create the OptionParser of this program.

Returns
OptionParser of this program

Definition at line 13 of file main.cpp.

13  {
14  OptionParser parser(true, "1.0.0");
15  parser.setExampleLongOption("dps --version");
16  parser.setExampleShortOption("dps -v");
17 
18  parser.addOption("plugin", "p", OptionType::FILENAME, true, std::string("Required option"));
19  parser.addOption("otherplugin", "q", OptionType::FILENAME, true, false, "other Required option");
20 
21  std::string defaultConfigHost("");
22  parser.addOption("config", "c", defaultConfigHost, "Optional value");
23 
24  parser.addOption("loadonly", "l", OptionType::NONE, false, "Optional Trigger option");
25  return parser;
26 }

References OptionType::FILENAME, OptionType::NONE, and createReleaseCurl::parser.

Referenced by main().

+ Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 28 of file main.cpp.

28  {
30  parser.parseArgument(argc, argv);
31  return 0;
32 }

References createOptionParser(), and createReleaseCurl::parser.

+ Here is the call graph for this function:
createReleaseCurl.parser
parser
Definition: createReleaseCurl.py:123
OptionParser
Parse the options passed to a program.
Definition: OptionParser.h:15
OptionType::NONE
@ NONE
Definition: OptionType.h:24
createOptionParser
OptionParser createOptionParser()
Create the OptionParser of this program.
Definition: main.cpp:13
OptionType::FILENAME
@ FILENAME
Definition: OptionType.h:26