On Mon, 24 Nov 2008 17:19:11 +0100, "Giovanni Marco Dall'Olio"
<[EMAIL PROTECTED]> wrote:
> Ciao a tutti,
> conoscete qualche modulo che sia migliore di getopt per parsare
> argomenti da linea di comando?

optparse

> Sto cercando su Internet da un bel po', ma non sono riuscito a trovare
> nessun modulo alternativo interessante..

Stai andando troppo lontano: è nella standard library :)

    http://docs.python.org/lib/module-optparse.html

Dovrebbe avere tutte le feature che richiedi (valori di default, help
auto-generato ecc.), ed è anche abbastanza semplice da estendere.

-- 
Daniele Varrazzo - Develer S.r.l.
http://www.develer.com
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a