summaryrefslogtreecommitdiff
path: root/bin/withlist
diff options
context:
space:
mode:
Diffstat (limited to 'bin/withlist')
-rw-r--r--bin/withlist8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/withlist b/bin/withlist
index da5c03876..a9bd63611 100644
--- a/bin/withlist
+++ b/bin/withlist
@@ -137,9 +137,13 @@ LOCK = 0
def usage(code, msg=''):
- print >> sys.stderr, _(__doc__)
+ if code:
+ fd = sys.stderr
+ else:
+ fd = sys.stdout
+ print >> fd, _(__doc__)
if msg:
- print >> sys.stderr, msg
+ print >> fd, msg
sys.exit(code)