stacks-network/stacks-core

Signer should return exit code 0 when run with no args

Open

#6.558 geöffnet am 2. Okt. 2025

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Rust (758 Forks)auto 404
choregood first issue

Repository-Metriken

Stars
 (3.063 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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

Contributor Guide