1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-18 04:00:03 +02:00

src/main.cpp: document -h,--help in usage()

This commit is contained in:
Henrik Hautakoski 2020-01-16 15:01:09 +01:00
parent 161b7e80e1
commit 297ae2b98f

View file

@ -87,7 +87,7 @@ void cmd_search(int argc, char **argv) {
void usage(const char *name) {
std::cout << name
<< " [ --help|-h ] [ search <word_list> [ <count:10> ]"
<< " [ -h | --help | search <word_list> [ <count:10> ]"
#ifdef HAVE_THREADS
<< " [ <threads:2> ]"
#endif /* HAVE_THREADS */
@ -95,6 +95,13 @@ void usage(const char *name) {
std::cout << " - Output one EOSIO key pair if no arguments are given" << std::endl << std::endl;
// Options
std::cout
<< " Options:" << std::endl
<< " -h, --help Shows this help text."
<< std::endl
<< std::endl;
std::cout << " search: " << std::endl
<< " performs a search, finding <count> public keys "
<< "containing one or more words from <word_list> (separated with ',')."
@ -106,7 +113,6 @@ void usage(const char *name) {
int main(int argc, char **argv) {
// search <word_list> [ <count> ]
if (argc > 1) {
if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) {