mirror of
https://github.com/erkin/ponysay.git
synced 2025-03-18 01:37:13 +01:00
listing extra ponies
This commit is contained in:
parent
243612379e
commit
a84f1d6534
1 changed files with 10 additions and 2 deletions
12
ponysay
12
ponysay
|
@ -55,6 +55,9 @@ class Ponysay():
|
||||||
elif args.opts['-l'] is not None: self.list()
|
elif args.opts['-l'] is not None: self.list()
|
||||||
elif args.opts['-L'] is not None: self.linklist()
|
elif args.opts['-L'] is not None: self.linklist()
|
||||||
elif args.opts['-B'] is not None: self.balloonlist()
|
elif args.opts['-B'] is not None: self.balloonlist()
|
||||||
|
elif args.opts['++onelist'] is not None: self.__extraponies(); self.onelist()
|
||||||
|
elif args.opts['+l'] is not None: self.__extraponies(); self.list()
|
||||||
|
elif args.opts['+L'] is not None: self.__extraponies(); self.linklist()
|
||||||
else:
|
else:
|
||||||
self.__extraponies(args)
|
self.__extraponies(args)
|
||||||
self.__bestpony(args)
|
self.__bestpony(args)
|
||||||
|
@ -70,8 +73,10 @@ class Ponysay():
|
||||||
'''
|
'''
|
||||||
Use extra ponies
|
Use extra ponies
|
||||||
'''
|
'''
|
||||||
def __extraponies(self, args):
|
def __extraponies(self, args = None):
|
||||||
if args.opts['-F'] is not None:
|
if args is None:
|
||||||
|
ponydirs[:] = extraponydirs
|
||||||
|
elif args.opts['-F'] is not None:
|
||||||
args.opts['-f'] = args.opts['-F']
|
args.opts['-f'] = args.opts['-F']
|
||||||
ponydirs[:] = extraponydirs
|
ponydirs[:] = extraponydirs
|
||||||
|
|
||||||
|
@ -1697,11 +1702,14 @@ run `man ponysay`. Ponysay has so much more to offer than described here.''')
|
||||||
|
|
||||||
opts.add_argumentless(['--quoters'])
|
opts.add_argumentless(['--quoters'])
|
||||||
opts.add_argumentless(['--onelist'])
|
opts.add_argumentless(['--onelist'])
|
||||||
|
opts.add_argumentless(['++onelist'])
|
||||||
|
|
||||||
opts.add_argumentless(['-h', '--help'], help = 'Print this help message.')
|
opts.add_argumentless(['-h', '--help'], help = 'Print this help message.')
|
||||||
opts.add_argumentless(['-v', '--version'], help = 'Print the version of the program.')
|
opts.add_argumentless(['-v', '--version'], help = 'Print the version of the program.')
|
||||||
opts.add_argumentless(['-l', '--list'], help = 'List pony names.')
|
opts.add_argumentless(['-l', '--list'], help = 'List pony names.')
|
||||||
opts.add_argumentless(['-L', '--altlist'], help = 'List pony names with alternatives.')
|
opts.add_argumentless(['-L', '--altlist'], help = 'List pony names with alternatives.')
|
||||||
|
opts.add_argumentless(['+l', '++list'], help = 'List non-MLP:FiM pony names.')
|
||||||
|
opts.add_argumentless(['+L', '++altlist'], help = 'List non-MLP:FiM pony names with alternatives.')
|
||||||
opts.add_argumentless(['-B', '--balloonlist'], help = 'List balloon styles.')
|
opts.add_argumentless(['-B', '--balloonlist'], help = 'List balloon styles.')
|
||||||
opts.add_argumentless(['-c', '--compact'], help = 'Compress messages.')
|
opts.add_argumentless(['-c', '--compact'], help = 'Compress messages.')
|
||||||
opts.add_argumented( ['-W', '--wrap'], arg = 'COLUMN', help = 'Specify the column when the message should be wrapped.')
|
opts.add_argumented( ['-W', '--wrap'], arg = 'COLUMN', help = 'Specify the column when the message should be wrapped.')
|
||||||
|
|
Loading…
Add table
Reference in a new issue