From 45b53d6eb061864b899ed722970ba31c8e9376f4 Mon Sep 17 00:00:00 2001 From: Michael Schwarz Date: Sun, 24 Aug 2014 18:34:29 +0200 Subject: [PATCH] argument parsing: Fixed code path for parsing --colour-pony accessing an undefined variable. --- src/ponysay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ponysay.py b/src/ponysay.py index 476655c1..e269c4e6 100755 --- a/src/ponysay.py +++ b/src/ponysay.py @@ -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'):