Message ID | 20180604090721.18744-4-amitay@ozlabs.org |
---|---|
State | Accepted |
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 [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40zpxY6mP7z9s0W for <incoming@patchwork.ozlabs.org>; Mon, 4 Jun 2018 19:08:01 +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="ioYi0suO"; 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 40zpxY4jcSzF10S for <incoming@patchwork.ozlabs.org>; Mon, 4 Jun 2018 19:08:01 +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="ioYi0suO"; dkim-atps=neutral X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40zpxV0gvXzF0xS for <pdbg@lists.ozlabs.org>; Mon, 4 Jun 2018 19:07:58 +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="ioYi0suO"; 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 40zpxS1Ys4z9ryk; Mon, 4 Jun 2018 19:07:55 +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=1528103277; bh=qjk70fgGj4CfzFk5WHEfQWaJI+FEN09AD6Fc+4atFFY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ioYi0suOIn6dybE+ozsU0lQMN3UT+qhH4AxA9pEX0M375FzHhZsgVEomksWTAdOD8 zCXF4i5exUi9golfc/WDS7n5SbvH08+vL1CIJuxWmBolqTz/sdK2KOc1luUsB9rhBd dOQIISMEasCinZcZAp0kuCHtIjUChoiokEx2bPgFMs3AJltwOQuoQg+0JJO5IJqrcr xVI1v/PAg2ZZaGq8twb1CwM7N640vcCng9tNgUzG31mA3tIf4LIaZQZtZ6wLl6ui9Z USXX1BUmM3OIg4gvA9C4jXqpDWzWh1RHqFWTDz4t/I1HyQbR4Pxzfx45M7r5msC+Sa bpBpHueNRYVlw== From: Amitay Isaacs <amitay@ozlabs.org> To: pdbg@lists.ozlabs.org Date: Mon, 4 Jun 2018 19:07:21 +1000 Message-Id: <20180604090721.18744-4-amitay@ozlabs.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180604090721.18744-1-amitay@ozlabs.org> References: <20180604090721.18744-1-amitay@ozlabs.org> Subject: [Pdbg] [PATCH v3 3/3] 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 |
Overhaul target selection
|
expand
|
diff --git a/src/main.c b/src/main.c index 2234d48..62c6e54 100644 --- a/src/main.c +++ b/src/main.c @@ -729,7 +729,6 @@ int main(int argc, char *argv[]) } PR_ERROR("Unsupported command: %s\n", argv[optind]); - print_usage(basename(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(-)