Skip to content

Commit ac5f324

Browse files
committed
add help
1 parent c43708f commit ac5f324

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/main.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ int main (int argc, char* argv[])
2424

2525
po::options_description desc("Allowed options");
2626
desc.add_options()
27-
("help", "Show this help message")
27+
("help,h", "Show this help message")
2828
("verbosity,v", po::value<int>()->implicit_value(1),
2929
"Enable verbosity (optionally specify level)")
3030
("command", po::value< vector<string> >(), "Command");
@@ -38,9 +38,12 @@ int main (int argc, char* argv[])
3838
po::notify(vm);
3939

4040
if (vm.count("help")) {
41-
std::cout << appName + "\n";
42-
std::cout << "<insert program description here>\n\n";
43-
std::cout << "Usage: $ cpp_miner command [options]\n";
41+
std::cout << appName + "\n\n";
42+
std::cout << "Usage: $ cpp_miner command [options]\n\n";
43+
std::cout << "block miner\n\n";
44+
std::cout << mineUsage << std::endl << std::endl;
45+
std::cout << "genesis block miner\n\n";
46+
std::cout << genesisGenUsage << std::endl << std::endl;
4447
std::cout << desc;
4548
return 0;
4649
}

0 commit comments

Comments
 (0)