From patchwork Thu May 21 06:36:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 474810 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49C9E14075F for ; Thu, 21 May 2015 16:36:58 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=bTVtJ62h; dkim-atps=neutral Received: from ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 2615F1A0BA3 for ; Thu, 21 May 2015 16:36:58 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=bTVtJ62h; dkim-atps=neutral X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Received: from mail-ie0-x231.google.com (mail-ie0-x231.google.com [IPv6:2607:f8b0:4001:c03::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 0DBC71A0B84 for ; Thu, 21 May 2015 16:36:47 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=bTVtJ62h; dkim-atps=neutral Received: by ieczm2 with SMTP id zm2so1443397iec.1 for ; Wed, 20 May 2015 23:36:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9B9GiX19Mx/VhL+Wh6IrU7wyKfEN2EFB16LMz6jFU3Q=; b=bTVtJ62h2K0DTQpj4ms7NNrMxQPy0IjA7gwM/3GjS7G68JeUEBdpLqcomkJm4xopKa 6DEwQ4T6rfWje4t56wGUjYbW7tM5hJIJnXJMuOOMcCOQjrMK66hvru40lJcZzAvll4kD J0Px/9SKtmSzE9ERS3Q80EhuzBgSTHot3uTibdH0yqZrBvGqI05LzcGnlEMQqFX6sePj z4UCH/ZDE3kYuAMCfBsvHCzbG2fbVw00MzMTE+bEn0y3Qkkd70gugBtjBJFznbNJNy7f RVVBogFsb5gGZUA5gk0PPu5XJ4xmU/rGM7wxM6TnIXjVtXY7Jz4gycFrp9Cam8CITsZy APdA== X-Received: by 10.50.30.138 with SMTP id s10mr32937967igh.3.1432190205066; Wed, 20 May 2015 23:36:45 -0700 (PDT) Received: from localhost.localdomain (cpe-45-48-59-37.socal.res.rr.com. [45.48.59.37]) by mx.google.com with ESMTPSA id ot6sm655155igb.11.2015.05.20.23.36.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 May 2015 23:36:44 -0700 (PDT) From: Brian Norris To: Jeremy Kerr Subject: [PATCH 2/3] pwclient: drop superfluous 'version' assignment Date: Wed, 20 May 2015 23:36:02 -0700 Message-Id: <1432190163-16675-2-git-send-email-computersforpeace@gmail.com> X-Mailer: git-send-email 2.4.1 In-Reply-To: <1432190163-16675-1-git-send-email-computersforpeace@gmail.com> References: <1432190163-16675-1-git-send-email-computersforpeace@gmail.com> X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: patchwork@lists.ozlabs.org MIME-Version: 1.0 Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" The 'version' argument is only necessary if we want to show version information (and we do not). Signed-off-by: Brian Norris --- apps/patchwork/bin/pwclient | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/patchwork/bin/pwclient b/apps/patchwork/bin/pwclient index c05315afb189..f2cec63492de 100755 --- a/apps/patchwork/bin/pwclient +++ b/apps/patchwork/bin/pwclient @@ -354,7 +354,7 @@ class _RecursiveHelpAction(argparse._HelpAction): parser.exit() def main(): - hash_parser = argparse.ArgumentParser(add_help=False, version=False) + hash_parser = argparse.ArgumentParser(add_help=False) hash_parser.add_argument( '-h', metavar='HASH', dest='hash', action='store', help='''Lookup by patch hash''' @@ -368,7 +368,7 @@ def main(): help='''Lookup patch in project''' ) - filter_parser = argparse.ArgumentParser(add_help=False, version=False) + filter_parser = argparse.ArgumentParser(add_help=False) filter_parser.add_argument( '-s', metavar='STATE', help='''Filter by patch state (e.g., 'New', 'Accepted', etc.)''' @@ -407,7 +407,7 @@ def main(): 'patch_name', metavar='STR', nargs='?', help='substring to search for patches by name', ) - help_parser = argparse.ArgumentParser(add_help=False, version=False) + help_parser = argparse.ArgumentParser(add_help=False) help_parser.add_argument( '--help', action='help', help=argparse.SUPPRESS, #help='''show this help message and exit''' @@ -416,7 +416,6 @@ def main(): action_parser = argparse.ArgumentParser( prog='pwclient', add_help=False, - version=False, formatter_class=argparse.RawDescriptionHelpFormatter, epilog='''(apply | get | info | view | update) (-h HASH | ID [ID ...])''', )