MCPcopy Create free account
hub / github.com/bfgroup/Lyra / subcommand

Method subcommand

tests/issue_79_run_test.cpp:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19struct subcommand
20{
21 subcommand(lyra::cli & cli)
22 {
23 cli.add_argument(
24 lyra::command("subcommand", [this](lyra::group const &) { exec(); })
25 .add_argument(lyra::opt(
26 [](std::string const & s) { return always_error_cb(s); },
27 "arg")
28 .name("--arg")));
29 }
30
31 private:
32 void exec() { std::cout << "Subcommand\n"; }

Callers

nothing calls this directly

Calls 4

always_error_cbFunction · 0.85
commandClass · 0.50
optClass · 0.50
nameMethod · 0.45

Tested by

no test coverage detected