Optik long help strings

Bob van der Poel bvdpoel at kootenay.com
Fri Nov 8 11:50:43 EST 2002


David Goodger wrote:
> 
> Bob van der Poel wrote:
> > I'm trying to use the Optik package for parsing command line options.
> > However, I'm running into a problem overriding its line warping
> > routines. I'd like the help to print something like:
> >
> > options:
> >  -p, --pattern   Set pattern
> >   'xx'  use the xx pattern
> >   'yy'  use the yy pattern
> >   ... more list of pattern options
> >
> > Seems that optik thinks it knows better where the new lines should go.
> > Suggestions?
> 
> It's not really clear what you intend.  Either you're using hard tabs or
> single spaces for indents; in any case, it's very subtle here.

Sorry. Was using real tabs. Dumb me.

  options:
    -p, --pattern   Set pattern
          'xx'  use the xx pattern
          'yy'  use the yy pattern
          ... more list of pattern options

Hopefully this doesn't get munged.

> Optik isn't currently set up to handle complex option descriptions (where
> complex means anything other than a single flexible paragraph).  I suggest
> you post to <optik-users at lists.sf.net>.  If this feature is really
> important to you, delve into the code and submit a patch.

I didn't know there was a optik list. Guess I'll have to subscribe.

Thanks.


-- 
Bob van der Poel ** Wynndel, British Columbia, CANADA **
EMAIL: bvdpoel at kootenay.com
WWW:   http://www.kootenay.com/~bvdpoel



More information about the Python-list mailing list