fix -f, +f, -F issue

Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
Mattias Andrée 2013-08-13 01:09:52 +02:00
parent 0d880ead2a
commit d234ee6c6c

View file

@ -826,7 +826,7 @@ class Ponysay():
for (opt, ponies, quotes) in [('-f', standard, False), ('+f', extra, False), ('-F', both, False), ('-q', standard, True)]: for (opt, ponies, quotes) in [('-f', standard, False), ('+f', extra, False), ('-F', both, False), ('-q', standard, True)]:
if args.opts[opt] is not None: if args.opts[opt] is not None:
for pony in args.opts[opt]: for pony in args.opts[opt]:
selection.append((opt, ponies, quotes)) selection.append((pony, ponies, quotes))
## TODO +q -Q ## TODO +q -Q
(pony, quote) = self.__getPony(selection, args) (pony, quote) = self.__getPony(selection, args)