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 05816429E3F for ; Mon, 3 Feb 2014 03:00:58 -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 iRiMkbPs6wKv for ; Mon, 3 Feb 2014 03:00:52 -0800 (PST) Received: from qmta06.westchester.pa.mail.comcast.net (qmta06.westchester.pa.mail.comcast.net [76.96.62.56]) by olra.theworths.org (Postfix) with ESMTP id DDC9C429E2E for ; Mon, 3 Feb 2014 03:00:40 -0800 (PST) Received: from omta04.westchester.pa.mail.comcast.net ([76.96.62.35]) by qmta06.westchester.pa.mail.comcast.net with comcast id Mn091n0010ldTLk56n0gTT; Mon, 03 Feb 2014 11:00:40 +0000 Received: from odin.tremily.us ([24.18.63.50]) by omta04.westchester.pa.mail.comcast.net with comcast id Mn0f1n00R152l3L01n0gjm; Mon, 03 Feb 2014 11:00:40 +0000 Received: from mjolnir.tremily.us (unknown [192.168.0.140]) by odin.tremily.us (Postfix) with ESMTPS id 6C787FB4D49; Mon, 3 Feb 2014 03:00:39 -0800 (PST) Received: (nullmailer pid 687 invoked by uid 1000); Mon, 03 Feb 2014 10:59:41 -0000 From: "W. Trevor King" To: notmuch@notmuchmail.org Subject: [PATCH 05/17] nmbug-status: Add metavars for --config and --get-query Date: Mon, 3 Feb 2014 02:59:23 -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=1391425240; bh=5sGDyEJD3pNSZ4GpvD4lY23E9sC1eX3vdlb2cYXar+c=; h=Received:Received:Received:Received:From:To:Subject:Date: Message-Id; b=XgqBVE2Pi2DIh+xZXblzTpvP/C1stWL161xAUvgczEa6dU7Fasla3U2dtUaNzT4Lp nCWGOYme5Jv4ut8wuyeo4XuQBxny5WlaZJym27215+Nhcc4bqFQoHI3FGvifxTGM01 usye59gGxqHl2ukEw7yzaoJRgaKqRwebNCSoToSMoYLPAPmS4SPoFIJOLKqm1AarFZ FAy3hopk5yUUjnH0qhY+420RgAu4bs9pQrsPSobPcyK5R0qmNiv+M57vaWuPWDh38G /JCh/fQBxomlTIr9hoU78Ap9R3Cwv5zCl2XakrgINV+EmNXqwAN80G7QAzgEweuKR+ TMb3g0jfgw+Xg== 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, 03 Feb 2014 11:00:58 -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