[Python-de] Re: Einige Fragen von einem Neuling...
Hartmut Goebel
h.goebel at goebel-consult.de
Mon Feb 7 16:33:00 CET 2005
Andreas Pakulat wrote:
>>import sys
>>print sys.argv
>>
>>Mit F2 starten, "-h" angegeben, Ausgabe:
>>
>>
>>>>>['/tmp/test.py', '-h']
>
>
> Ich parse mittels getopt die Optionen und da landet -h nicht in opts
> sondern in args_proper... Irgendwas ist da faul... Ich werd mich mal
> mit dem Autor unterhalten...
Auch wenn Du das Programm von der Shell aus startest?
Was ist mit obigem Beispiel? Klappt das?
--
Schönen Gruß - Regards
Hartmut Goebel
| Hartmut Goebel | IT-Security -- effizient |
| h.goebel at goebel-consult.de | www.goebel-consult.de |