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


Groups > comp.lang.python > #70023 > unrolled thread

Re: CommandLine Option in Python for filtering values from Column

Started byMark Lawrence <breamoreboy@yahoo.co.uk>
First post2014-04-10 09:27 +0100
Last post2014-04-10 09:27 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: CommandLine Option in Python for filtering values from Column Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-04-10 09:27 +0100

#70023 — Re: CommandLine Option in Python for filtering values from Column

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2014-04-10 09:27 +0100
SubjectRe: CommandLine Option in Python for filtering values from Column
Message-ID<mailman.9125.1397118605.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web