Re: Formated String in optparse

2005-04-14 Thread Peter Otten
Norbert Thek wrote: > Thank You for your help, its working! > > Now I have an additional question. ...which would warrant a separate thread... > The problem is the encoding of the Text > I'm using German, Can you tell me how to encode > the textstring that the Windows commandline shows the spec

Re: Formated String in optparse

2005-04-14 Thread Norbert Thek
Thank You for your help, its working! Now I have an additional question. The problem is the encoding of the Text I'm using German, Can you tell me how to encode the textstring that the Windows commandline shows the special letters right? For exampel i get 'f³r' but i want 'für' (maybe reader w

Re: Formated String in optparse

2005-03-31 Thread Peter Otten
MyHaz wrote: > If you haven't looked into it, you may like the way class > OptionParser() makes the help text for you. What do you mean? To clarify: OptionParser's help message in the default format is """ usage: discard_newline.py [options] einsamer nie als im august erfuellungsstunde im gela

Re: Formated String in optparse

2005-03-31 Thread MyHaz
If you haven't looked into it, you may like the way class OptionParser() makes the help text for you. - Haz -- http://mail.python.org/mailman/listinfo/python-list

Re: Formated String in optparse

2005-03-31 Thread Peter Otten
Norbert Thek wrote: > Is there an easy way to convince optparse to accept newline in the > helpstring? and more importand also in the 'desc' string. I tried > everything > (from the os.linesep) to \n, \r, \r\n, ... The "official" way (write your own Formatter class) is a bit tedious indeed. Here