symbol-cli icon indicating copy to clipboard operation
symbol-cli copied to clipboard

Some questions cannot be answered from the command line

Open segfaultxavi opened this issue 3 years ago • 1 comments

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.

segfaultxavi avatar Apr 07 '21 10:04 segfaultxavi

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.

segfaultxavi avatar Apr 07 '21 10:04 segfaultxavi