On 7/5/05, Andrew Durdin <[EMAIL PROTECTED]> wrote:
>         print """Usage: dostuff <options>
> 
> Options:
>   -c  - blah blah
>   -f <filename>  - do stuff with file "filename"
>   -s  - more blah"""

Isn't the standard idiom for this already:

import textwrap
...
    print textwrap.dedent("""\
        Usage: dostuff <options>

        Options:
         -c  - blah blah
         -f <filename>  - do stuff with file "filename"
         -s  - more blah""")

STeVe
-- 
You can wordify anything if you just verb it.
        --- Bucky Katt, Get Fuzzy
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to