MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / AppInitRPC

Function AppInitRPC

src/coind-cli.cpp:19–37  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////// Start

Source from the content-addressed store, hash-verified

17// Start
18//
19static bool AppInitRPC(int argc, char* argv[])
20{
21 CBaseParams::LoadParamsFromConfigFile(argc, argv);
22
23 if (argc < 2 || SysCfg().IsArgCount("-?") || SysCfg().IsArgCount("--help")) {
24 // First part of help message is specific to RPC client
25 string strUsage = _("Coin Core RPC client version") + " " + FormatFullVersion() + "\n\n" +
26 _("Usage:") + "\n" +
27 " coincli [options] <command> [params] " + _("Send command to Coin Core") + "\n" +
28 " coincli [options] help " + _("List commands") + "\n" +
29 " coincli [options] help <command> " + _("Get help for a command") + "\n";
30
31 strUsage += "\n" + HelpMessageCli(true);
32
33 fprintf(stdout, "%s", strUsage.c_str());
34 return false;
35 }
36 return true;
37}
38
39int main(int argc, char* argv[])
40{

Callers 1

mainFunction · 0.85

Calls 4

_Function · 0.85
FormatFullVersionFunction · 0.85
HelpMessageCliFunction · 0.85
IsArgCountMethod · 0.80

Tested by

no test coverage detected