Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.070 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.00; 'subject:Python': 0.06; 'arguments': 0.09; 'lawrence': 0.09; 'cc:addr:python-list': 0.11; 'language.': 0.14; 'reminding': 0.16; 'subject:values': 0.16; 'language': 0.16; 'wrote:': 0.18; 'module': 0.19; 'command': 0.22; 'cc:addr:python.org': 0.22; '---': 0.24; 'cc:2**0': 0.24; 'header :In-Reply-To:1': 0.27; 'forgot': 0.30; 'message- id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'url:python': 0.33; 'subject:from': 0.34; 'received:google.com': 0.35; 'accessing': 0.36; 'module.': 0.36; 'url:listinfo': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'list.': 0.37; 'awesome': 0.38; 'itself': 0.39; 'url:mail': 0.40; 'free': 0.61; 'viruses': 0.61; 'protection': 0.63; 'field': 0.63; 'our': 0.64; 'grab': 0.64; 'more': 0.64; 'antivirus': 0.68; 'quality': 0.72; 'to:addr:yahoo.co.uk': 0.84; 'watched': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=/LWvbx0Gl8mxbu4JNWn0toedkZsQY/4LHg529a0Hf1I=; b=vIrdcs/B2l64wiVC6ednVJAaUOv8UvEKua6qzSWjGodLbg7aTwbPhTWX5D87gMCzyZ T/cdzZWbIyEN+ViYrC+5tMXFnF/pboRSd4z2bcLaV1zVuffXB1EA0kE+HVK72KuB9gtc JI/W0VGZNCuopWtWrPIzpA4ANFeAkqmRyCD45jJqFtZZy326oESIU4pA1S78P3yoYTXP IX4kxpmQascpT2t+h8GOa9+4A9aKcCbS/GzUhcvFK2jbfKmH5z+JLarYtXBsqe0/KWI1 iEoXN+uKirBOIVSiIAcepkj/GffkLjjhCjbQSN1ZzOLrnB0GNOJcBo0bY1Z3WOFPmGJe ZknA== X-Received: by 10.182.250.200 with SMTP id ze8mr40282obc.72.1397121461959; Thu, 10 Apr 2014 02:17:41 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1397071383.35192.YahooMailNeo@web193506.mail.sg3.yahoo.com> From: balaji marisetti Date: Thu, 10 Apr 2014 14:47:11 +0530 Subject: Re: CommandLine Option in Python for filtering values from Column To: Mark Lawrence Content-Type: text/plain; charset=UTF-8 Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 37 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1397121471 news.xs4all.nl 2970 [2001:888:2000:d::a6]:60221 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:70026 > An alternative is to grab docopt from pypi, it's awesome :) Some time back, I watched a video about that module but, later, I forgot its name. Thanks for reminding me of that module. On 10 April 2014 13:57, Mark Lawrence wrote: > On 10/04/2014 06:16, balaji marisetti wrote: >> >> sys.argv is itself a list. You can directly access the `quality` field >> as sys.argv[2]. >> >> quality = int(sys.argv[2]) >> >> However, if you want to use more command line options, then using >> `argparse` module is better than accessing arguments using `sys.argv`. >> > > An alternative is to grab docopt from pypi, it's awesome :) > > -- > My fellow Pythonistas, ask not what our language can do for you, ask what > you can do for our language. > > Mark Lawrence > > --- > This email is free from viruses and malware because avast! Antivirus > protection is active. > http://www.avast.com > > > -- > https://mail.python.org/mailman/listinfo/python-list -- :-)balaji