From d0af9908d289b82bc82bb2fa9ce0ab0554fb6c71 Mon Sep 17 00:00:00 2001 From: Grégoire Détrez Date: Tue, 28 Jun 2022 17:22:42 +0200 Subject: Change ERR_USAGE exit code Cpython already uses exit code 1 for uncaught exception, this uses the vaguely-standardized value of 64 from `os.EX_USAGE` instead. --- sigsum-witness.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigsum-witness.py b/sigsum-witness.py index 5cd9f7a..3c0d643 100755 --- a/sigsum-witness.py +++ b/sigsum-witness.py @@ -35,7 +35,7 @@ BASE_URL_DEFAULT = 'http://poc.sigsum.org:4780/' CONFIG_DIR_DEFAULT = os.path.expanduser('~/.config/sigsum-witness/') ERR_OK = 0 -ERR_USAGE = 1 +ERR_USAGE = os.EX_USAGE ERR_TREEHEAD_READ = 2 ERR_TREEHEAD_FETCH = 3 ERR_TREEHEAD_SIGNATURE_INVALID = 4 -- cgit v1.2.3