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: 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: References: <2089d20b-aa60-462f-aad0-51109849cf36@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 To: roy.snuffles@gmail.com Content-Type: text/plain; charset=UTF-8 Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Thu, Mar 20, 2014 at 3:08 PM, 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