Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'level,': 0.07; 'optparse': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'losing': 0.16; 'message-id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:variable': 0.16; 'module': 0.19; 'feb': 0.22; 'rapidly': 0.24; 'url:home': 0.24; 'earlier': 0.24; '(or': 0.24; 'header:X-Complaints-To:1': 0.27; 'point': 0.28; 'sets': 0.30; 'beyond': 0.35; 'but': 0.35; 'charset :us-ascii': 0.36; 'turn': 0.37; 'received:76': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'email addr:gmail.com': 0.63; 'skill': 0.68; 'study': 0.69; 'loses': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Flag control variable Date: Wed, 12 Feb 2014 20:46:31 -0500 Organization: IISS Elusive Unicorn References: <68f27949-e613-476b-9227-5a86e4f4df91@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-26-199.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392256007 news.xs4all.nl 2852 [2001:888:2000:d::a6]:42693 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66131 On Tue, 11 Feb 2014 21:09:02 -0800 (PST), luke.geelen@gmail.com declaimed the following: >Can I make it that if >C = int(sys.argv[3]) >But when I only enter 2 argumentvariable it sets c automaticly to 0 or 1 I suspect it will be beyond your current skill level, but you are rapidly approaching the point where you might want to study the documentation for the argparse module (or the earlier optparse module -- it's a steeplechase... getopt losing out to optparse which in turn loses to argparse)) -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/