Message ID | 20180524055017.8801-12-amitay@ozlabs.org |
---|---|
State | Deferred |
Headers | show
Return-Path: <pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40rz5Z5DnCz9s1w for <incoming@patchwork.ozlabs.org>; Thu, 24 May 2018 15:51:14 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="LV7F0J5D"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40rz5Z3R5QzF1Hj for <incoming@patchwork.ozlabs.org>; Thu, 24 May 2018 15:51:14 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="LV7F0J5D"; dkim-atps=neutral X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40rz4p25ljzF1Cr for <pdbg@lists.ozlabs.org>; Thu, 24 May 2018 15:50:34 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="LV7F0J5D"; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 40rz4n5YX7z9s16; Thu, 24 May 2018 15:50:33 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1527141033; bh=ISsNsp39Q1jIfM5XGRuLA8pysybDbNN3DDMjcEKo1EU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LV7F0J5Dyet0BpknIOJwTUtivVMcOzKvE6lPBZf3/SPVYp/InbK/btAiUqmZi4ano 9KBsfccT4UHosofAtl4WD31D06SVTAQWlhJRUxolrWllR2ZPhjW6WCBgj80/GEqe4b 2Xg66OurlSPIR+jrUoUsF30J0JvXaJ0U3Sdv9xNzuarrrN4CT/pMdCIpm2WjmPbCTY CUTI4dGfNExD0Kh7aH0br5c8XN15w9yO0V/bzUMkt7XvYNfX4OVkHFThgLOy1XmCG9 ivTeEdVJIEEibfcsSl8J8EU5EgEu0e5E4NyrcFLFjdKIzLA+oiYjYC+g9P8ZF1a5c+ T+XyBN7mq+JDA== From: Amitay Isaacs <amitay@ozlabs.org> To: "pdbg@lists.ozlabs.org"@lists.ozlabs.org Date: Thu, 24 May 2018 15:50:17 +1000 Message-Id: <20180524055017.8801-12-amitay@ozlabs.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524055017.8801-1-amitay@ozlabs.org> References: <20180524055017.8801-1-amitay@ozlabs.org> Subject: [Pdbg] [PATCH v3 11/11] main: Print specific errors for invalid commands X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" <pdbg.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/pdbg>, <mailto:pdbg-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/pdbg/> List-Post: <mailto:pdbg@lists.ozlabs.org> List-Help: <mailto:pdbg-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/pdbg>, <mailto:pdbg-request@lists.ozlabs.org?subject=subscribe> Cc: Amitay Isaacs <amitay@ozlabs.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" <pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> |
Series |
Some more cleanups
|
expand
|
diff --git a/src/main.c b/src/main.c index 0bc6c88..eccabd5 100644 --- a/src/main.c +++ b/src/main.c @@ -738,7 +738,6 @@ int main(int argc, char *argv[]) } PR_ERROR("Unsupported command: %s\n", argv[optind]); - print_usage(argv[0]); return 1; found_action:
This avoids large usage message obscuring the actual error message. Signed-off-by: Amitay Isaacs <amitay@ozlabs.org> --- src/main.c | 1 - 1 file changed, 1 deletion(-)