Print Options of optparse

Steven D'Aprano steven at REMOVE.THIS.cybersource.com.au
Thu Dec 17 02:13:54 EST 2009


On Wed, 16 Dec 2009 23:10:26 -0800, Enchanter wrote:

> I am learning Python and uising optparse to handle command-line options.
> But I am not sure who to print the options' content below:
> 
> .....
> 
> options, args = parser.parse_args()


Is there a reason why

print options


doesn't do what you want?




-- 
Steven



More information about the Python-list mailing list