stacks-core icon indicating copy to clipboard operation
stacks-core copied to clipboard

Signer should return exit code 0 when run with no args

Open wileyj opened this issue 3 months ago • 2 comments

stacks-signer when run with no args simply displays a help message, and then exits with code '2'.

However, when using an arg like --help or --version, simialr output is displayed and the exit code is 0 (expected).

the exit code of 2 makes it challenging to check the binary is there in some helper scripts:

$ stacks-signer > /dev/null 2&>1; echo $?
2
$ stacks-node > /dev/null 2&>1; echo $?
0

Propose that if no args are defined, keep behavious as it is today but return an exit code of 0

wileyj avatar Oct 02 '25 21:10 wileyj

If still open, I would love to work on this @wileyj

Signor1 avatar Oct 06 '25 10:10 Signor1

If still open, I would love to work on this @wileyj

Unfortunately already has a PR fix up :) But thank you for your interest! Hopefully you are able to find a new ticket that interests you :D

jferrant avatar Oct 06 '25 17:10 jferrant