Update TODO
[dueringa_WikiWalker.git] / src / CommandLineParserUtils.cpp
blob4eb79ecaeb1ad04c642a4e5516ca17d557de2f84
1 //! \file
3 #include "CommandLineParserUtils.h"
5 namespace WikiWalker
7 //! utility functions for command line parsers
8 namespace CommandLineParserUtils
10 //! converts command line option enum to resppective string
11 std::string getStringFlag(CommandLineParserBase::CommandLineOptions flag)
13 std::string sflag;
14 switch(flag) {
15 case CommandLineParserBase::CommandLineOptions::Version:
16 return "version";
17 case CommandLineParserBase::CommandLineOptions::Help:
18 return "help";
19 case CommandLineParserBase::CommandLineOptions::URL:
20 return "url";
21 case CommandLineParserBase::CommandLineOptions::JsonCache:
22 return "json-cache";
23 case CommandLineParserBase::CommandLineOptions::DotOut:
24 return "dot-out";
25 case CommandLineParserBase::CommandLineOptions::FetchDeep:
26 return "deep";
27 case CommandLineParserBase::CommandLineOptions::SkipSslVerification:
28 return "skip-ssl-verification";
29 default:
30 return "";
33 } // namespace CommandLineParserUtils
34 } // namespace WikiWalker