Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 17AED431FAF for ; Mon, 10 Feb 2014 10:42:14 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tgh5bLF8sQYf for ; Mon, 10 Feb 2014 10:42:08 -0800 (PST) Received: from qmta03.westchester.pa.mail.comcast.net (qmta03.westchester.pa.mail.comcast.net [76.96.62.32]) by olra.theworths.org (Postfix) with ESMTP id E8128431FDD for ; Mon, 10 Feb 2014 10:41:55 -0800 (PST) Received: from omta14.westchester.pa.mail.comcast.net ([76.96.62.60]) by qmta03.westchester.pa.mail.comcast.net with comcast id Qf8m1n0041HzFnQ53ihv4n; Mon, 10 Feb 2014 18:41:55 +0000 Received: from odin.tremily.us ([24.18.63.50]) by omta14.westchester.pa.mail.comcast.net with comcast id Qihu1n00M152l3L3aihvV4; Mon, 10 Feb 2014 18:41:55 +0000 Received: from mjolnir.tremily.us (unknown [192.168.0.140]) by odin.tremily.us (Postfix) with ESMTPS id 2E00B10167AB; Mon, 10 Feb 2014 10:41:54 -0800 (PST) Received: (nullmailer pid 1253 invoked by uid 1000); Mon, 10 Feb 2014 18:40:44 -0000 From: "W. Trevor King" To: notmuch@notmuchmail.org Subject: [PATCH v2 05/20] nmbug-status: Add metavars for --config and --get-query Date: Mon, 10 Feb 2014 10:40:26 -0800 Message-Id: X-Mailer: git-send-email 1.8.5.2.8.g0f6c0d1 In-Reply-To: References: In-Reply-To: References: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1392057715; bh=5sGDyEJD3pNSZ4GpvD4lY23E9sC1eX3vdlb2cYXar+c=; h=Received:Received:Received:Received:From:To:Subject:Date: Message-Id; b=aumSJNGH/S4lZE4CmgVZgR26HRSPZPWTNQGc0xCH2t89VDjC4Pl9HWeM36QB8NEgj n3u2eSmvGbmilLtPmpzlYbC3kCQpV6ADTSIiyMD8iQnsNsUHSzOaO4ow0cZKXCm9Ks SRWMYVX7xW66+009GCGUsRwjCL8WG073liHcacdkWBsNbLuSGFL+UoDFu/JdlGPpfC Dgr8FWsnZ8Q+qiWE8rH9+tY+EGs4ppMwWLy8jWmQUm7y5oz6UCHHuAM6g9jPazTWPE BT7Q0hk5zdjIfq7nLpOeDcaXrEAsrRparV9yq4l0p3eFDAQPFRkUOXbMTaThbJLutZ /e9S84TPQ5wgg== Cc: Tomi Ollila X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Feb 2014 18:42:14 -0000 Now the suggested usage (listed by 'nmbug-status --help') is: usage: nmbug-status [-h] [--text] [--config PATH] [--list-views] [--get-query VIEW] instead of the less obvious: usage: nmbug-status [-h] [--text] [--config CONFIG] [--list-views] [--get-query GET_QUERY] --- devel/nmbug/nmbug-status | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status index 6dfbe4d..22eeb5c 100755 --- a/devel/nmbug/nmbug-status +++ b/devel/nmbug/nmbug-status @@ -52,10 +52,12 @@ def read_config(path=None, encoding=None): parser = argparse.ArgumentParser() parser.add_argument('--text', help='output plain text format', action='store_true') -parser.add_argument('--config', help='load config from given file') +parser.add_argument('--config', help='load config from given file', + metavar='PATH') parser.add_argument('--list-views', help='list views', action='store_true') -parser.add_argument('--get-query', help='get query for view') +parser.add_argument('--get-query', help='get query for view', + metavar='VIEW') args = parser.parse_args() -- 1.8.5.2.8.g0f6c0d1