aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-17 22:37:09 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-17 22:37:09 +0200
commited215b754157d58c8bdcf54df582d74ee16fdab9 (patch)
tree0fef19584fe12d96a8d26552aec4db3100466379 /src
parentm (diff)
downloadargparser-ed215b754157d58c8bdcf54df582d74ee16fdab9.tar.gz
argparser-ed215b754157d58c8bdcf54df582d74ee16fdab9.tar.bz2
argparser-ed215b754157d58c8bdcf54df582d74ee16fdab9.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/argparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/argparser.py b/src/argparser.py
index 78cc0e0..6b89266 100644
--- a/src/argparser.py
+++ b/src/argparser.py
@@ -333,7 +333,7 @@ class ArgParser():
msg += ' %s' % opt[0]
else:
msg += ' %s(%s)' % opt
- sys.stderr.write(msg + '\n')
+ print(msg)
if exit_value is not None:
sys.exit(exit_value)
return False
@@ -354,7 +354,7 @@ class ArgParser():
msg = self.program + ': option used out of context: ' + opt
if opt != self.optmap[opt][0]:
msg += '(' + self.optmap[opt][0] + ')'
- sys.stderr.write(msg + '\n')
+ print(msg)
rc = False
if (not rc) and (exit_value is not None):
sys.exit(exit_value)