Skip to content

Commit c201dec

Browse files
committed
fix(pass): send usage and error messages to stderr
1 parent 0f94c4b commit c201dec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/pass

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ TOP = 'PARAMS'
1616

1717
if __name__ == '__main__':
1818
if len(sys.argv) != 2:
19-
print("Usage: %s <config-file>" % sys.argv[0])
19+
print("Usage: %s <config-file>" % sys.argv[0], file=sys.stderr)
2020
sys.exit(1)
2121
cfg_path = sys.argv[1]
2222
if not os.path.isfile(cfg_path):
23-
print("Unable to find configuration file %s." % cfg_path)
23+
print("Unable to find configuration file %s." % cfg_path, file=sys.stderr)
2424
sys.exit(1)
2525
cfg = ConfigObj(cfg_path)
2626
fil = cfg[TOP]['shared']
2727
if not os.path.isfile(fil):
28-
print("Unable to find shared configuration file %s." % fil)
28+
print("Unable to find shared configuration file %s." % fil, file=sys.stderr)
2929
sys.exit(1)
3030
shr = ConfigObj(fil)
3131
sec = cfg[TOP]['secret']

0 commit comments

Comments
 (0)