From 0b6a4d78a4947491eb52fa380a9e59f21f900e83 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 18 Jun 2013 00:04:08 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3-70-g09d2