MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / InitCmdLineParser

Method InitCmdLineParser

src/twadmin/twadmincl.cpp:288–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void cTWAModeCreateCfg::InitCmdLineParser(cCmdLineParser& parser)
289{
290 InitCmdLineCommon(parser);
291
292 parser.AddArg(cTWAdminCmdLine::MODE_CREATE_CONFIG,
293 TSTRING(_T("")),
294 TSTRING(_T("create-cfgfile")),
295 cCmdLineParser::PARAM_NONE);
296 parser.AddArg(
297 cTWAdminCmdLine::PASSPHRASE, TSTRING(_T("Q")), TSTRING(_T("site-passphrase")), cCmdLineParser::PARAM_ONE);
298 parser.AddArg(
299 cTWAdminCmdLine::SITE_KEY_FILE, TSTRING(_T("S")), TSTRING(_T("site-keyfile")), cCmdLineParser::PARAM_ONE);
300 parser.AddArg(
301 cTWAdminCmdLine::NO_ENCRYPTION, TSTRING(_T("e")), TSTRING(_T("no-encryption")), cCmdLineParser::PARAM_NONE);
302 parser.AddArg(cTWAdminCmdLine::PARAMS, TSTRING(_T("")), TSTRING(_T("")), cCmdLineParser::PARAM_ONE);
303 parser.AddMutEx(cTWAdminCmdLine::NO_ENCRYPTION, cTWAdminCmdLine::SITE_KEY_FILE);
304 parser.AddMutEx(cTWAdminCmdLine::NO_ENCRYPTION, cTWAdminCmdLine::PASSPHRASE);
305}
306
307bool cTWAModeCreateCfg::Init(const cConfigFile* cf, const cCmdLineParser& parser)
308{

Callers 1

_tmainFunction · 0.45

Calls 3

AddArgMethod · 0.80
AddMutExMethod · 0.80
InitCmdLineCommonFunction · 0.50

Tested by

no test coverage detected