Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #70026
| References | <1397071383.35192.YahooMailNeo@web193506.mail.sg3.yahoo.com> <CAKcrOwfpJkvp1XhwzkVVhmAdPasQ9CwemqBv=PDS70DoaTNOjQ@mail.gmail.com> <li5klc$elt$2@ger.gmane.org> |
|---|---|
| From | balaji marisetti <balajimarisetti@gmail.com> |
| Date | 2014-04-10 14:47 +0530 |
| Subject | Re: CommandLine Option in Python for filtering values from Column |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.9128.1397121471.18130.python-list@python.org> (permalink) |
> 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 <breamoreboy@yahoo.co.uk> 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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: CommandLine Option in Python for filtering values from Column balaji marisetti <balajimarisetti@gmail.com> - 2014-04-10 14:47 +0530
csiph-web