mirror of
https://github.com/erkin/ponysay.git
synced 2025-02-16 17:44:23 +01:00
argument parsing: Fixed code path for parsing --colour-pony accessing an undefined variable.
This commit is contained in:
parent
57c9775e29
commit
45b53d6eb0
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ class Ponysay():
|
||||||
'''
|
'''
|
||||||
## Colouring features
|
## Colouring features
|
||||||
if self.__test_nfdnf('--colour-pony'):
|
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:
|
else:
|
||||||
self.mode += '\033[0m'
|
self.mode += '\033[0m'
|
||||||
if self.__test_nfdnf('+c'):
|
if self.__test_nfdnf('+c'):
|
||||||
|
|
Loading…
Reference in a new issue