We are glad to help! If you do have future problems feel free to post again,
but would you mind posting in plain text (or at least without a background)?
Thanks.
Ramit
Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 21
Thank you Parsad.
I am using Python 2.7.1+
You are right, looks like optparse is replaced by argparse.
My problem was that I was checking output and not options.output.
cheers,
Mina
On 11-09-20 02:27 PM, Prasad, Ramit wrote:
from optparse import OptionParser
I am not sure what version of Py
> from optparse import OptionParser
I am not sure what version of Python you are using but from 2.7+ optparse is
deprercated. You may want to use that if you can.
> I don't really understand what dest and action in the arguments to
> parser.add_option mean.
Here is your usage:
>>> parser = Op
On Mon, Sep 19, 2011 at 1:22 PM, Mina Nozar wrote:
> **
> I don't really understand what dest and action in the arguments to
> parser.add_option mean.
> Any help is appreciated.
>
Have you read the fine manual, specifically the sections here:
http://docs.python.org/library/optparse.html#optparse
Hello,
I am trying to use OptionParser (my first time) to set a variable (cvs_output). i.e. if --csv is given in the list of
options, then cvs_output = True.
Then I check,
if cvs_output == True:
[...]
I have the following so far but something is missing.
from optparse import OptionParser
usa