Skip to content

CLI simplify and more natural commands

clive show witness --name gtg requires explicitly --name even though in this tree
clive -> show -> witness
it's easy to guess that whatever is provided next is name of a witness.

clive show balances shows balances for gandalf by default (working account),
and yet if I want to show balances for gtg it's not enough to write:
clive show balances gtg
instead I have to write:
clive show balances --account-name gtg

Of course similar for other commands such as clive show hive-power, etc.

Here's an example of how painful this can be:

I'm forced to enter my key as clive configure key add --key MY_PRIVATE_KEY instead of simply clive configure key add MY_PRIVATE_KEY, leading to another failure attempt before success.

root@cdab3c3f1a6c:/clive# clive configure key

 Usage: clive configure key [OPTIONS] COMMAND [ARGS]...

 Manage your key(s).

╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --help  -h        Show this message and exit.                                                                                                                    │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ add           Import a key into the Beekeeper, and make it ready to use for Clive.                                                                               │
│ remove        Remove a key alias from the profile and optionally from the Beekeeper storage also.                                                                │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

root@cdab3c3f1a6c:/clive# clive configure key add MY_SECRET_KEY
Usage: clive configure key add [OPTIONS]
Try 'clive configure key add -h' for help.
╭─ Error ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Missing option '--key'.                                                                                                                                          │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
root@cdab3c3f1a6c:/clive# clive configure key add --key MY_SECRET_KEY
Edited by Dan Notestein