aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-18 00:04:08 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-18 00:04:08 +0200
commit0b6a4d78a4947491eb52fa380a9e59f21f900e83 (patch)
treebe57f06c6785877b73995fd8499603d8763da5ef /src
parentvariable rename (diff)
downloadargparser-0b6a4d78a4947491eb52fa380a9e59f21f900e83.tar.gz
argparser-0b6a4d78a4947491eb52fa380a9e59f21f900e83.tar.bz2
argparser-0b6a4d78a4947491eb52fa380a9e59f21f900e83.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/argparser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/argparser.py b/src/argparser.py
index 61312f3..47e9293 100644
--- a/src/argparser.py
+++ b/src/argparser.py
@@ -202,7 +202,8 @@ class ArgParser():
def unrecognised(arg):
self.unrecognisedCount += 1
if self.unrecognisedCount <= 5:
- sys.stderr.write('%s: warning: unrecognised option %s\n' % (self.program, arg))
+ self.__print('%s: warning: unrecognised option %s' % (self.program, arg))
+ self.__out.flush()
self.rc = False
while len(queue) != 0: