plac, the easiest command line arguments parser in the world

Michele Simionato michele.simionato at gmail.com
Wed Jun 2 05:14:22 EDT 2010


On Jun 2, 11:01 am, Stefan Behnel <stefan... at behnel.de> wrote:
> I managed to talk a Java-drilled collegue of mine into
> writing a Python script for a little command line utility, but he needed a
> way to organise his argument extraction code when the number of arguments
> started to grow beyond two. I told him that there were two ways to do it:
> do it by hand or do it right. He took the right choice and I took him to
> the optparse docs, copied the first example into his code and we adapted it
> a little. He just loved the beauty of it.

Could you show plac to your friend? I would be curious to know what he
think.
Perhaps he would call out his judgment on optparse ;)




More information about the Python-list mailing list