argument parsing: Fixed code path for parsing --colour-pony accessing an undefined variable.

This commit is contained in:
Michael Schwarz 2014-08-24 18:34:29 +02:00
parent 57c9775e29
commit 45b53d6eb0

View file

@ -279,7 +279,7 @@ class Ponysay():
'''
## Colouring features
if self.__test_nfdnf('--colour-pony'):
self.mode += '\033[' + ';'.join(args.opts['--colour-pony']) + 'm'
self.mode += '\033[' + ';'.join(self.args.opts['--colour-pony']) + 'm'
else:
self.mode += '\033[0m'
if self.__test_nfdnf('+c'):