Twisted and argparse

writeson doug.farrell at gmail.com
Wed Jul 10 16:44:51 EDT 2013


Hi all,

I'm trying to write an Twisted program that uses the Application object (and will run with twistd) and I'd like to parse command line arguments. The Twisted documentation shows how to use a Twisted thing called usage.Options. However to me this looks a lot like the older Python module getopts. Is there a way to use the argparse module with a Twisted Application?

Thanks!
Doug



More information about the Python-list mailing list