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 #7370 from EOSIO/cleos-binary-flag-patch
Browse files Browse the repository at this point in the history
Fix `-b` flag for `cleos get table` subcommand
  • Loading branch information
John DeBord authored May 16, 2019
2 parents a8b1aa5 + 4dc31fe commit 2715372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/cleos/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2617,7 +2617,6 @@ int main( int argc, char** argv ) {
getTable->add_option( "account", code, localized("The account who owns the table") )->required();
getTable->add_option( "scope", scope, localized("The scope within the contract in which the table is found") )->required();
getTable->add_option( "table", table, localized("The name of the table as specified by the contract abi") )->required();
getTable->add_option( "-b,--binary", binary, localized("Return the value as BINARY rather than using abi to interpret as JSON") );
getTable->add_option( "-l,--limit", limit, localized("The maximum number of rows to return") );
getTable->add_option( "-k,--key", table_key, localized("Deprecated") );
getTable->add_option( "-L,--lower", lower, localized("JSON representation of lower bound value of key, defaults to first") );
Expand All @@ -2631,6 +2630,7 @@ int main( int argc, char** argv ) {
getTable->add_option( "--encode-type", encode_type,
localized("The encoding type of key_type (i64 , i128 , float64, float128) only support decimal encoding e.g. 'dec'"
"i256 - supports both 'dec' and 'hex', ripemd160 and sha256 is 'hex' only"));
getTable->add_flag("-b,--binary", binary, localized("Return the value as BINARY rather than using abi to interpret as JSON"));
getTable->add_flag("-r,--reverse", reverse, localized("Iterate in reverse order"));
getTable->add_flag("--show-payer", show_payer, localized("show RAM payer"));

Expand Down

0 comments on commit 2715372

Please sign in to comment.