diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-06-18 00:04:08 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-06-18 00:04:08 +0200 |
commit | 0b6a4d78a4947491eb52fa380a9e59f21f900e83 (patch) | |
tree | be57f06c6785877b73995fd8499603d8763da5ef /src/argparser.py | |
parent | variable rename (diff) | |
download | argparser-0b6a4d78a4947491eb52fa380a9e59f21f900e83.tar.gz argparser-0b6a4d78a4947491eb52fa380a9e59f21f900e83.tar.bz2 argparser-0b6a4d78a4947491eb52fa380a9e59f21f900e83.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/argparser.py')
-rw-r--r-- | src/argparser.py | 3 |
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: |