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 DDFD6429E21 for ; Sun, 13 Nov 2011 14:47:34 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 2XOHudqfMdDC for ; Sun, 13 Nov 2011 14:47:34 -0800 (PST) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 211F2431FB6 for ; Sun, 13 Nov 2011 14:47:33 -0800 (PST) Received: by bkaq10 with SMTP id q10so6354254bka.26 for ; Sun, 13 Nov 2011 14:47:31 -0800 (PST) Received: by 10.204.41.66 with SMTP id n2mr16692496bke.77.1321224451254; Sun, 13 Nov 2011 14:47:31 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi. [80.220.92.23]) by mx.google.com with ESMTPS id dq2sm27464889bkb.11.2011.11.13.14.47.28 (version=SSLv3 cipher=OTHER); Sun, 13 Nov 2011 14:47:30 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org, david@tethera.net Subject: [PATCH 0/6] cli getoptification Date: Mon, 14 Nov 2011 00:47:20 +0200 Message-Id: X-Mailer: git-send-email 1.7.5.4 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: Sun, 13 Nov 2011 22:47:35 -0000 Hi, this set switches to getopt_long for parsing command line options where applicable, and hopefully makes David happy. ;) This is on top of id:"cover.1321217854.git.jani@nikula.org". This was a fairly quick exercise, so watch out for bugs. getopt_long does have subtle differences from the original. All the tests pass after patch 6/6. BR, Jani. Jani Nikula (6): cli: notmuch new: use getopt_long for parsing command line options cli: notmuch search: use getopt_long for parsing command line options cli: notmuch show: use getopt_long for parsing command line options cli: notmuch count: use getopt_long for parsing command line options cli: notmuch reply: use getopt_long for parsing command line options test: emacs-large-search-buffer: expected results according to getopt_long notmuch-client.h | 1 + notmuch-count.c | 33 ++++++++------- notmuch-new.c | 20 +++++++-- notmuch-reply.c | 40 ++++++++++-------- notmuch-search.c | 90 +++++++++++++++++++++------------------ notmuch-show.c | 61 +++++++++++++++----------- test/emacs-large-search-buffer | 2 +- 7 files changed, 141 insertions(+), 106 deletions(-) -- 1.7.5.4