Re: [Python] getopt

2008-05-23 Per discussione Cristian Re
Come non detto ho capito male la domanda 2008/5/23 Cristian Re <[EMAIL PROTECTED]>: > oppure se non vuoi stare ancora sul più classico puoi usare sys.argv > ___ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python

Re: [Python] getopt

2008-05-23 Per discussione Cristian Re
oppure se non vuoi stare ancora sul più classico puoi usare sys.argv ___ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python

Re: [Python] getopt

2008-05-23 Per discussione enrico franchi
On Thu, May 22, 2008 at 11:26 PM, Alessandro Dentella <[EMAIL PROTECTED]> wrote: > io mi trovo molto bene con questa ricetta di michele Simionato che usa la > docsctring stessa, opportunamente (ed intuitivamente) formattata sia per > l'help che per la definizione delle opzioni. Così ti trovi sempr

Re: [Python] getopt

2008-05-22 Per discussione Alessandro Dentella
On Thu, May 22, 2008 at 09:48:39PM +0200, Paolo wrote: > Ciao a tutti, > ho qualche domanda da fare sulla funzione getopt: > > Da riga di comando l'utente può inserire comandi del tipo: > prova -p arg1 arg2 arg3 arg4 > prova -c arg1 arg2 > > come posso utilizzare la funzione getopt in mod

[Python] getopt

2008-05-22 Per discussione Paolo
Ciao a tutti, ho qualche domanda da fare sulla funzione getopt: Da riga di comando l'utente può inserire comandi del tipo:     prova -p arg1 arg2 arg3 arg4     prova -c arg1 arg2 come posso utilizzare la funzione getopt in modo da ottenere come opzioni -p oppure -c e come argomenti gli argome