From patchwork Fri Jun 1 06:30:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 923777 Return-Path: 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 40xvdy1YnCz9s08 for ; Fri, 1 Jun 2018 16:32:54 +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="o5AjfQJi"; 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 40xvdx72MzzF0Rs for ; Fri, 1 Jun 2018 16:32:53 +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="o5AjfQJi"; 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 40xvc339xZzDrp0 for ; Fri, 1 Jun 2018 16:31:15 +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="o5AjfQJi"; 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 40xvc25kXpz9rvt; Fri, 1 Jun 2018 16:31:14 +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=1527834675; bh=roWsWnkpOaG1T6ESL3jsOpkTrMwsRlzbfYpaw/7A50A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o5AjfQJiCTvTYlO/pck88a4XC+t17zSFmsjJ7a4yZVNfeWs1nJBAmUWpodjV1r/m6 mtBU4DYv70n1g5ZxVNT3OM8z7fbdngOFS+3JgurrlAjGrNhvCka0LvGFBXp0Ks3FF7 IDmiMyTYsLyoixw/ohZqEOrw4wtAbcZlsrQBjFCxQHvjrJGWl0xp3xIhkE16pSKYw+ TiSiwUPoDfeaszDC4BpbndO0Ppo1CJreid5WkkAVg8TNbzJbJ1O1QBMxwMHznfOYPB AeDgWz732CRyPRhGh30WWQD4Rf9NoG1+hWA5fprK8kUmxSQrgI8op3BrkabVlD03Ov P67bx1FPdQepA== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Fri, 1 Jun 2018 16:30:46 +1000 Message-Id: <20180601063050.19286-4-amitay@ozlabs.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180601063050.19286-1-amitay@ozlabs.org> References: <20180601063050.19286-1-amitay@ozlabs.org> Subject: [Pdbg] [PATCH v2 3/7] 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs MIME-Version: 1.0 Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" This avoids large usage message obscuring the actual error message. Signed-off-by: Amitay Isaacs Reviewed-by: Alistair Popple --- src/main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.c b/src/main.c index db27409..6dacd66 100644 --- a/src/main.c +++ b/src/main.c @@ -732,7 +732,6 @@ int main(int argc, char *argv[]) } PR_ERROR("Unsupported command: %s\n", argv[optind]); - print_usage(basename(argv[0])); return 1; found_action: