bitcoindevkit / bdk-cli

A CLI wallet library and REPL tool to demo and test the BDK library
Other
111 stars 65 forks source link

Generating new adress with empty descriptor gives 0 exit code #170

Open torkelrogstad opened 2 months ago

torkelrogstad commented 2 months ago

Describe the bug
Calling get_new_address with an empty descriptor prints an error, but exits with 0.

To Reproduce

$ bdk-cli --network signet wallet --descriptor "" get_new_address
$ echo $?
0

Expected behavior
I'd expect a non-0 exit code.

Build environment