symbol-cli
symbol-cli copied to clipboard
Some questions cannot be answered from the command line
For example, account generate
always asks Do you want to save the account?
. The Yes answer can be provided from the command line via --save
, but there is no way to provide the No answer.
Another example, all transaction
commands ask Do you want to announce this transaction?
. The Yes answer can be provided from the command line via --announce
, but there is no way to provide the No answer.
A possible solution would be that these parameters (--save
and --announce
) accepted a negative version (--no-save
and --no-announce
) so the question can be skipped completely.
This is useful for guides and unattended scripts.
In a more general note, I'd like ALL questions to be answerable from the command line.
For example, account generate
asks Select an import type
which cannot be provided from a parameter.