Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #68608

Re: File Path/Global name issue

References <2089d20b-aa60-462f-aad0-51109849cf36@googlegroups.com> <mailman.8311.1395345950.18130.python-list@python.org> <f890ea65-d47d-4b4c-ac12-fd479e42ee60@googlegroups.com>
Date 2014-03-20 15:15 -0500
Subject Re: File Path/Global name issue
From Skip Montanaro <skip@pobox.com>
Newsgroups comp.lang.python
Message-ID <mailman.8312.1395346545.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Mar 20, 2014 at 3:08 PM,  <roy.snuffles@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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

File Path/Global name issue roy.snuffles@gmail.com - 2014-03-20 12:55 -0700
  Re: File Path/Global name issue Skip Montanaro <skip@pobox.com> - 2014-03-20 15:05 -0500
    Re: File Path/Global name issue roy.snuffles@gmail.com - 2014-03-20 13:08 -0700
      Re: File Path/Global name issue Skip Montanaro <skip@pobox.com> - 2014-03-20 15:15 -0500
  Re: File Path/Global name issue Peter Otten <__peter__@web.de> - 2014-03-20 21:26 +0100
  Re: File Path/Global name issue John Gordon <gordon@panix.com> - 2014-03-20 21:31 +0000

csiph-web