mirror of
https://github.com/erkin/ponysay
synced 2024-11-23 11:53:14 +00: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