add +q and -Q to opt parsing

Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
Mattias Andrée 2013-04-23 09:07:56 +02:00
parent ed49a6db0d
commit 1349e8b732

View file

@ -138,6 +138,8 @@ run `man ponysay`. Ponysay has so much more to offer than described here.''')
opts.add_argumented( ['+f', '++file', '++pony'], arg = 'PONY', help = 'Select a non-MLP:FiM pony.') opts.add_argumented( ['+f', '++file', '++pony'], arg = 'PONY', help = 'Select a non-MLP:FiM pony.')
opts.add_argumented( ['-F'] + _F, arg = 'PONY', help = 'Select a pony, that can be a non-MLP:FiM pony.') opts.add_argumented( ['-F'] + _F, arg = 'PONY', help = 'Select a pony, that can be a non-MLP:FiM pony.')
opts.add_argumented( ['-q', '--quote'], arg = 'PONY', help = 'Select a pony which will quote herself.') opts.add_argumented( ['-q', '--quote'], arg = 'PONY', help = 'Select a pony which will quote herself.')
opts.add_argumented( ['+q', '++quote'], arg = 'PONY', help = 'Select a non-MLP:FiM pony which will quote herself.')
opts.add_argumented( ['-Q', '--anyquote', '--any-quote'], arg = 'PONY', help = 'Select a pony, that can be a non-MLP:FiM pony, which will quote herself.')
opts.add_variadic( ['--f', '--files', '--ponies'], arg = 'PONY') opts.add_variadic( ['--f', '--files', '--ponies'], arg = 'PONY')
opts.add_variadic( ['++f', '++files', '++ponies'], arg = 'PONY') opts.add_variadic( ['++f', '++files', '++ponies'], arg = 'PONY')
opts.add_variadic( ['--F'] + __F, arg = 'PONY') opts.add_variadic( ['--F'] + __F, arg = 'PONY')