mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-25 05:47:59 +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
|
||||
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'):
|
||||
|
|
Loading…
Reference in a new issue