Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.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.192 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.62; '*S*': 0.01; '--help': 0.16; 'argparse,': 0.16; 'subject:values': 0.16; "doesn't": 0.22; 'message-id:@gmail.com': 0.33; 'header:User-Agent:1': 0.33; 'there': 0.33; 'it?': 0.33; 'to:addr:python-list': 0.34; 'received:209.85.212': 0.34; 'received:google.com': 0.37; "there's": 0.37; 'received:10.0.0': 0.38; 'received:209.85': 0.38; 'option': 0.39; 'why': 0.39; 'received:209': 0.40; 'to:addr:python.org': 0.40; 'show': 0.67; 'customized': 0.79; 'opinion.': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=7guP2RJH4VKKoct9e3ijpDbJ+6xrzUXPKg6YZ8FrYss=; b=aKQzOK7n+40wfFGdJQdeJI9jjxLorGKc12KapGkwAM1MP0zX2fx16u0b0w8m930xn4 lVbPqseoxWevPzWv2DYNYOjI7h3xVVi8nujYMkcKVfHEEaoZms3//K0ohx2ZxNaAWcOY bnxMv7oaJ40XSsK1Q49Fw1K5yWl0zvopLq6G4= Date: Thu, 05 Jan 2012 13:24:25 +0000 From: Andrea Crotti User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111224 Thunderbird/9.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: argparse and default values Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1325769870 news.xs4all.nl 6940 [2001:888:2000:d::a6]:42992 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18548 There's one thing I don't understand about argparse, why doesn't --help show what is the default value?? I mean if I add an option that can be customized it would be good for the user to know what is the current value in my opinion. Is there a way to make it show it?