mirror of
https://github.com/erkin/ponysay.git
synced 2025-02-07 13:36:43 +01:00
fall back to -f if none is used
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
b861c8a65e
commit
92b3bedcd7
1 changed files with 2 additions and 0 deletions
|
@ -478,6 +478,8 @@ class Ponysay():
|
|||
quote = args.opts['-q'] is not None ## TODO +q -Q
|
||||
standard = (args.opts['-f'] is not None) or (args.opts['-F'] is not None) or (args.opts['-q'] is not None) ## TODO -Q
|
||||
extra = (args.opts['+f'] is not None) or (args.opts['-F'] is not None) ## TODO +q -Q
|
||||
if not (standard or extra):
|
||||
standard = True
|
||||
ponydirs = (self.ponydirs if standard else []) + (self.extraponydirs if extra else []);
|
||||
quoters = self.__quoters() if standard and quote else None ## TODO +q -Q
|
||||
if (quoters is not None) and (len(quoters) == 0):
|
||||
|
|
Loading…
Reference in a new issue