[PATCH v2 05/20] nmbug-status: Add metavars for --config and --get-query
authorW. Trevor King <wking@tremily.us>
Mon, 10 Feb 2014 18:40:26 +0000 (10:40 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:59:51 +0000 (09:59 -0800)
46/023bdcf6f4775c3f238e65d0db160891a5bf3a [new file with mode: 0644]

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