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


Groups > comp.lang.python > #68608

Re: File Path/Global name issue

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <skip.montanaro@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.010
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'argument': 0.05; 'error:': 0.07; 'modify': 0.07; 'parameter': 0.09; 'cc:addr:python-list': 0.11; 'args.': 0.16; 'argument.': 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'subject:File': 0.16; 'subject:issue': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'thu,': 0.19; 'command': 0.22; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'specify': 0.24; 'tells': 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'supposed': 0.32; 'run': 0.32; 'call.': 0.33; 'actual': 0.34; "i'd": 0.34; 'received:google.com': 0.35; 'skip:- 20': 0.37; 'skip:- 10': 0.38; 'pm,': 0.38; 'either': 0.39; 'skip:p 20': 0.39; 'back': 0.62; 'telling': 0.64; 'to:addr:gmail.com': 0.65; 'believe': 0.68; 'mar': 0.68; '20,': 0.68; 'line*': 0.84; 'subject:Global': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=mO+d9eKKIgQ7+JJ0jUfjAWwLvNV1c78V7u75RU4/F78=; b=nFk0s8NjWhtu3G8YNsljcslNPBNBMk8Z8H6wJrJYTVlhG4LBdEM2vcJaGZNNb3lVE+ JLt4Kr/32n8WkFBecj3HoX4jKRuzVdaod2MiFNvR97sijKQzmvf/iA+K3mv8q2HMVkRm 1yRKDVZyDyFmrH6/+6M3niuEnTuOqfd0jQv1+FGOrcRwU1BU/QYnIYPtzrFR8NiDTU6p mqXSrH5PWZB6kjR7WqAwIgtGUCEbR/cG9FW8TN2JblujX/X78g+a68WAfBL7jIHXAtBK pVtL7LAp/N0C5/h0xOcyIhyBF01sJokfi8CXWZZhCbhYZaTQHdjhpMtmmZylYOcygeXS 8MbQ==
MIME-Version 1.0
X-Received by 10.50.60.103 with SMTP id g7mr5238162igr.20.1395346542471; Thu, 20 Mar 2014 13:15:42 -0700 (PDT)
Sender skip.montanaro@gmail.com
In-Reply-To <f890ea65-d47d-4b4c-ac12-fd479e42ee60@googlegroups.com>
References <2089d20b-aa60-462f-aad0-51109849cf36@googlegroups.com> <mailman.8311.1395345950.18130.python-list@python.org> <f890ea65-d47d-4b4c-ac12-fd479e42ee60@googlegroups.com>
Date Thu, 20 Mar 2014 15:15:42 -0500
X-Google-Sender-Auth Bvp3L8Q3EO-fz3C8Zc0dxs9-so0
Subject Re: File Path/Global name issue
From Skip Montanaro <skip@pobox.com>
To roy.snuffles@gmail.com
Content-Type text/plain; charset=UTF-8
Cc Python <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.8312.1395346545.18130.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1395346546 news.xs4all.nl 2943 [2001:888:2000:d::a6]:59230
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:68608

Show key headers only | 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