[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] [python] blank linke med optparse



On Wed, 24 Sep 2008, Atte André Jensen wrote:

Hejsa

Jeg anvender optparse til at parse commandline options.

Jeg kunne godt tænke mig at indsætte en blank linje i det hjælpeoutput der udskrives hvis man kalder med optionen -h, simpelthen for at gruppere sammenhørende options og dermed gøre outputtet mere overskueligt.

Kig på optparse.OptionGroup. Et eksempel på, hvordan det bruges, kan du finde her:

   http://svalgaard.net/jens/xmltv/filegrabber.py

- Jens
--
http://imada.sdu.dk/~svalle/address.php
Stop destroying our planet!
This is where I keep all my stuff.


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2008-10-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *