mochimodev/mochimo

Suggestion: Add a silent switch for mojo.jar command line "Init".

Opened this issue · 0 comments

Currently while running commands against the mojo.jar, such as java -jar mojo.jar init I can't find a way to supress the output.

Example:
C:\Mochimo\Test>java -jar mojo-2.4-0-20200115.jar init -mp "mp1" -mw "aa bb cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt uu vv ww xx" -n "TestWallet1" -p "TestWallet1" testwallet1.mcm
Recovery mnemonic:
"aa bb cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt uu vv ww xx"
Recovery mnemonic passphrase (required to restore): [***]

Do you want to use this mnemonic and passphrase ? (y/n)
y

Take the time to secure your mnemonic words and passphrase. THEY WON'T BE SHOWN AGAIN. Press 'y' to continue
y

I have tried adding -v, -vv, -vvv to see how the "verbose" switch affects the output, but there is no change.

The displayed information and inclusion of the two questions and y/n answers are much more difficult to parse using automation. Recommending a feature to have a "-s" or silent tag to suppress the follow-on questions and potentially the entire input. Or implementing verbosity levels with -v being silent, -vv being a simple "success | fail" output, and -vvv (default) being the current output.