Is there a way I can configure optparse in Python to not take the beginning -? So instead of
%program -d optionvalue
I get
%program d optionvalue
Currently, when I try to do
parser.add_option('d', '--database')
i get the following error:
optparse.OptionError: invalid option string 'd': must be at least two characters long
Any help would be appreciated! Thanks
dand valued? (e.g.program d d)