Skip to content

Commit

Permalink
argument parsing: Fixed code path for parsing --colour-pony accessing…
Browse files Browse the repository at this point in the history
… an undefined variable.
  • Loading branch information
Feuermurmel committed Aug 24, 2014
1 parent 57c9775 commit 45b53d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ponysay.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def __run(self):
'''
## 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'):
Expand Down

0 comments on commit 45b53d6

Please sign in to comment.