File Path/Global name issue

Skip Montanaro skip at pobox.com
Thu Mar 20 16:15:42 EDT 2014


On Thu, Mar 20, 2014 at 3:08 PM,  <roy.snuffles at gmail.com> wrote:
> simpleRun.py: error: argument -mf/--infmat_file is required

I think you are misinterpreting the actual purpose of the
parser_add_argument() call. It's telling you that *on the command
line* you can specify it using either

-mf some-file-name

or

--infmat_file=some-file-name

It also tells you that it is a required argument.

I don't believe you are supposed to have to modify the source to run
the program. I'd set the argument to the "help=..." parameter back to
however it was set when you got it and try either of the above command
line args.

Skip



More information about the Python-list mailing list