# HG changeset patch # User cat@eee # Date 1266675993 18000 # Node ID 6cc12ad6e61683393a1a0409e19ee6eb7b259921 # Parent 89e38f922c25fedef52fcae99f940a33229a2cd5 options in pirate8.py slide diff -r 89e38f922c25 -r 6cc12ad6e616 docs/pycon2010/pycon2010.rst --- a/docs/pycon2010/pycon2010.rst Sat Feb 20 00:11:34 2010 -0500 +++ b/docs/pycon2010/pycon2010.rst Sat Feb 20 09:26:33 2010 -0500 @@ -304,6 +304,11 @@ :: + @options([make_option('--ho', type='int', default=2, + help="How often to chant 'ho'"), + make_option('-c', '--commas', + action="store_true", + help="Intersperse commas")]) def do_yo(self, arg, opts): chant = ['yo'] + ['ho'] * opts.ho separator = ', ' if opts.commas else ' '