///////////////////////////////////////////////////////////////////////// Start
| 17 | // Start |
| 18 | // |
| 19 | static 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 | |
| 39 | int main(int argc, char* argv[]) |
| 40 | { |
no test coverage detected