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

Method forceCommandHelp

src/client/argparser.cpp:175–182  ·  view source on GitHub ↗

This forces help to be printed using "help "

Source from the content-addressed store, hash-verified

173
174// This forces help to be printed using "help <command>"
175void mp::ArgParser::forceCommandHelp()
176{
177 parser.clearPositionalArguments();
178
179 // Need to add this back so helpText() can add the correct command for usage
180 parser.addPositionalArgument("command", "The command to execute", "<command>");
181 help_requested = true;
182}
183
184void mp::ArgParser::forceGeneralHelp()
185{

Callers 1

runMethod · 0.80

Calls 1

addPositionalArgumentMethod · 0.80

Tested by

no test coverage detected