mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Update with current RPC commands. Fix help logic.
This commit is contained in:
21
main.cpp
21
main.cpp
@@ -24,10 +24,15 @@ void printHelp()
|
|||||||
cout << "options: " << endl;
|
cout << "options: " << endl;
|
||||||
cout << " -" << endl;
|
cout << " -" << endl;
|
||||||
cout << "commands: " << endl;
|
cout << "commands: " << endl;
|
||||||
|
cout << " createfamily [<key>]" << endl;
|
||||||
|
cout << " accountinfo <family>:<key>" << endl;
|
||||||
|
cout << " newaccount <family> [<name>]" << endl;
|
||||||
|
cout << " lock <family>" << endl;
|
||||||
|
cout << " unlock <passphrase>" << endl;
|
||||||
|
cout << " familyinfo" << endl;
|
||||||
|
cout << " connect <ip> [<port>]" << endl;
|
||||||
|
cout << " sendto <destination> <amount> [<tag>]" << endl;
|
||||||
cout << " stop" << endl;
|
cout << " stop" << endl;
|
||||||
cout << " send <address> <amount>" << endl;
|
|
||||||
cout << " getinfo" << endl;
|
|
||||||
cout << " getbalance" << endl;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37,15 +42,17 @@ int parseCommandline(int argc, char* argv[])
|
|||||||
if(argc>1)
|
if(argc>1)
|
||||||
{
|
{
|
||||||
ret=commandLineRPC(argc, argv);
|
ret=commandLineRPC(argc, argv);
|
||||||
if(!ret) printHelp();
|
if(ret)
|
||||||
}else startApp();
|
printHelp();
|
||||||
return(ret);
|
}
|
||||||
|
else startApp();
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
runTests();
|
// runTests();
|
||||||
|
|
||||||
return(parseCommandline(argc,argv));
|
return(parseCommandline(argc,argv));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user