Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #122 from kalloc/patch-2
Browse files Browse the repository at this point in the history
Temporary add help command
  • Loading branch information
bytemaster authored Aug 2, 2017
2 parents f62c672 + dc5d906 commit de5f47d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion programs/eosc/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,15 @@ int main( int argc, char** argv ) {
for( uint32_t i = 0; i < argc; ++i ) {
args[i] = string(argv[i]);
}
const auto& command = args[1];
string command = "help";

if( args.size() > 1 ) {
command = args[1];
}
if( command == "help" ) {
std::cout << "Command list: info, block, exec, account, push-trx, setcode, transfer, create, import, unlock, lock, and do\n";
return -1;
}
if( command == "info" ) {
std::cout << fc::json::to_pretty_string( get_info() );
}
Expand Down

0 comments on commit de5f47d

Please sign in to comment.