Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feed.xsnews.nl!border-2.ams.xsnews.nl!newsfeed.xs4all.nl!newsfeed6.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'argument': 0.04; 'command- line': 0.09; 'cc:addr:python-list': 0.10; 'subject:python': 0.11; '-tkc': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'handling.': 0.16; 'message-id:@tim.thechases.com': 0.16; 'received:70.251': 0.16; 'received:dsl.rcsntx.swbell.net': 0.16; 'received:rcsntx.swbell.net': 0.16; 'received:swbell.net': 0.16; 'subject: \n ': 0.16; 'subject:Feedback': 0.16; 'subject:parser': 0.16; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; "to:name:steven d'aprano": 0.16; 'wrote:': 0.17; 'certainly': 0.17; 'module': 0.19; 'cc:2**0': 0.23; "haven't": 0.23; 'seems': 0.23; 'cc:no real name:2**0': 0.24; 'command': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; '[1]': 0.27; 'handling': 0.27; '[2]': 0.27; "d'aprano": 0.29; 'steven': 0.29; 'there': 0.35; 'list.': 0.35; 'but': 0.36; 'wanted': 0.36; 'url:org': 0.36; 'subject: (': 0.36; 'being': 0.37; 'subject:: ': 0.38; 'build': 0.39; 'share': 0.61; 'url:v': 0.68; 'url:youtube': 0.70; 'obvious': 0.71; 'url:watch': 0.74; 'received:50.22': 0.84; 'watched': 0.84; 'fascinating': 0.91 Date: Sat, 13 Oct 2012 21:53:23 -0500 From: Tim Chase User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111120 Icedove/3.1.16 MIME-Version: 1.0 To: Steven D'Aprano Subject: Re: one obvious parser (was "Feedback on my python framework I'm building.") References: <634c9dca-e64d-40c6-b9d5-cf04a86a220a@googlegroups.com> <4c7a82ca-de0c-4b8b-a128-9ecd1b4c8b31@googlegroups.com> <5f18f5d1-1442-4a10-922c-783dc6ddf657@googlegroups.com> <9c958a7c-04db-4c6d-a8a2-38400e67e718@googlegroups.com> <507a2298$0$6574$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: <507a2298$0$6574$c3e8da3$5496439d@news.astraweb.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Source: X-Source-Args: X-Source-Dir: 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1350183150 news.xs4all.nl 6870 [2001:888:2000:d::a6]:44071 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31233 On 10/13/12 21:25, Steven D'Aprano wrote: > Not being Dutch, I don't know whether the obvious way to do command line > argument handling is the getopt module or argparse. But there certainly > isn't *only one way* to do command line argument handling. As an aside, I just watched a fascinating video[1] on docopt[2] which seems like an amazingly simple way to build command-line UIs. I haven't toyed with it yet, but I just wanted to share my "wow, that's slick" experience with the list. -tkc [1] http://www.youtube.com/watch?v=pXhcPJK5cMc [2] http://docopt.org/