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

Commit

Permalink
Merge pull request #5984 from EOSIO/cleos-newaccount-descriptions
Browse files Browse the repository at this point in the history
fix descriptions of the two types of cleos commands to create an account
  • Loading branch information
arhag authored Oct 12, 2018
2 parents 94ab8b5 + 2ac3ffc commit 75baea5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions programs/cleos/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ Usage: ./cleos create SUBCOMMAND
Subcommands:
key Create a new keypair and print the public and private keys
account Create a new account on the blockchain
account Create a new account on the blockchain (assumes system contract does not restrict RAM usage)
$ ./cleos create account
Create a new account on the blockchain
Create a new account on the blockchain (assumes system contract does not restrict RAM usage)
Usage: ./cleos create account [OPTIONS] creator name OwnerKey ActiveKey
Positionals:
Expand Down Expand Up @@ -896,7 +896,11 @@ struct create_account_subcommand {
bool simple;

create_account_subcommand(CLI::App* actionRoot, bool s) : simple(s) {
auto createAccount = actionRoot->add_subcommand( (simple ? "account" : "newaccount"), localized("Create an account, buy ram, stake for bandwidth for the account"));
auto createAccount = actionRoot->add_subcommand(
(simple ? "account" : "newaccount"),
(simple ? localized("Create a new account on the blockchain (assumes system contract does not restrict RAM usage)")
: localized("Create a new account on the blockchain with initial resources") )
);
createAccount->add_option("creator", creator, localized("The name of the account creating the new account"))->required();
createAccount->add_option("name", account_name, localized("The name of the new account"))->required();
createAccount->add_option("OwnerKey", owner_key_str, localized("The owner public key for the new account"))->required();
Expand Down

0 comments on commit 75baea5

Please sign in to comment.