MCPcopy Create free account
hub / github.com/canonical/multipass / returnCodeFrom

Method returnCodeFrom

src/client/argparser.cpp:161–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161mp::ReturnCode mp::ArgParser::returnCodeFrom(ParseCode parse_code) const
162{
163 switch (parse_code)
164 {
165 case ParseCode::CommandFail:
166 return ReturnCode::CommandFail;
167 case ParseCode::CommandLineError:
168 return ReturnCode::CommandLineError;
169 default:
170 return ReturnCode::Ok;
171 }
172}
173
174// This forces help to be printed using "help <command>"
175void mp::ArgParser::forceCommandHelp()

Callers 15

runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected