Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp602375ybl; Fri, 16 Aug 2019 00:45:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlHgn791BbZqkpJluHsCQyYCux5lZ0i7D5jqnXDlD8IX3ddcJCBMpWDwMOdi+VDowRb3YW X-Received: by 2002:a62:4e05:: with SMTP id c5mr9479768pfb.66.1565941513968; Fri, 16 Aug 2019 00:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565941513; cv=none; d=google.com; s=arc-20160816; b=IBZmRdcPdHTRKBxEwEsCjF3xf4FcLYBoWZOHEquxA0qqJO0ZTwd1BcglhGXNKN9rO6 xwsruoMdPZdQmMWSOkxK5a1GeEvfYAD95vTdS28U++jk+h+CAsfRTOOc2TKJTDwgTu+Z iZm9xDtcQrOXvqOOwslkiqgSLNQV5Un875myXuP60JMgEqWWdsa1A1x26Hl6z+OgLhBs 1e5Kw4D7wHz/W/7NKTi0kLwWL0rBMINZQTG6XjY5eB2VB9SXTOcmcgm8Ek3FA22I2GSQ nXwNi6iGUOmZFb5LZLR7fqcSwhUS8GZP728JxqzWdT7mCKNNCP48Ebb4ncWzQb1f3D5Z VOPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UbAGClTM4OjINkw+2Q91ZXw2vkDsf3HaQidalB3K5l8=; b=wsnyDeo5oiyjXgggYkqTQMaWQTEjyr173aeCMEfg0BjiNYMLzruBGzusqogA6x0nk2 YUafZkSkOLVNAqr5oi1/ZGg7GTPYsRftfg8q0GRo7YSoG6rtmQXCRgksoi/mARdmOBKh ERPLlHnAj5xCq90XzrPxsLQKwVjr7OgMeyE2Vo1lFkx8TBGyGO0M1C0MMPCr2Gat3z/y K3VXXP9OE9RphxjleeftxlpQaj9WZ72W1devC9vD59LEivv3AQ05xfKcltwJN2KHDscL ocVwr7txFTF4w0T/RvRsMpunQeWmlsn1u832Hmfjeg3oHhBD447L0CaugeFRXBXYZ8Yq hqtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="I/474fKD"; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x20si2572009pjt.50.2019.08.16.00.44.51; Fri, 16 Aug 2019 00:45:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="I/474fKD"; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726649AbfHPHor (ORCPT + 99 others); Fri, 16 Aug 2019 03:44:47 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:32867 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725829AbfHPHoq (ORCPT ); Fri, 16 Aug 2019 03:44:46 -0400 Received: by mail-pg1-f196.google.com with SMTP id n190so2551523pgn.0 for ; Fri, 16 Aug 2019 00:44:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UbAGClTM4OjINkw+2Q91ZXw2vkDsf3HaQidalB3K5l8=; b=I/474fKDUgOJ8ZeMaTnzMJBhv6P0OTTyVwVtFpqDDgnzjzjYn4oH0zd/Woa54MCt2C 7V5IkVxPyOPAkYLV60xe0N+nOWSCriZz6D76riZKfivTSAua9r9D4zSHVHygMKk8caVl ooK02fe8uF60wVetoPbZQkDSPR96BdgxBX6Ngclidh3HCD0F/5lZdtYqjbCToRBjKZiB 32rrIfJ5kEFAswNpptxKAJGu9rxuFRrU+KYng22yl38imlpvmzbaqFv0dkJSJkuDCTGP waYsXcECu2KDmkRLJFHA8egS0xhWsNlqdfZFJ0ZRWn4OwAjc7KBvgycmRxIXxPQC984D 6V0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UbAGClTM4OjINkw+2Q91ZXw2vkDsf3HaQidalB3K5l8=; b=hn2jQzRrsF1kKo4LLEASMk09nMyyIbOR/4wUyfTxRRiBnSzi4/KV5OmPTipYAFE4dM Q1rOVfS9HFrykgCMDcxZpxhl1AfSknKlQSUmSFljUkHHlnRRGPawotuHd8HGrYNmQdfB rNDMrbBnVRO9nJjpyFFujD1tEddeaWaoU5mAVa3uOeD0XMiJSb8AYdI2ZtCLszgHAzRi 9jW0WgMrujfNx4OYMSK1JrOIL/x1nOZoExtLthicAaSe2Dohhe7KDb2Do8hj4kvJI65Q 5jf5CSFuAPMrVcA92vu86uDPWIjfMhDHvfiYoTkab5HtMW82WR7xAOJxyX79+ISaCfvv +wzQ== X-Gm-Message-State: APjAAAWp+rAkvDoyv5rbixC9En2DlaXGrcSfKE5RA30YiIbhDxbhRE+A md+l0hQiqrG5NUthzeNnLS82RwQ= X-Received: by 2002:a17:90a:a013:: with SMTP id q19mr5871419pjp.64.1565941485866; Fri, 16 Aug 2019 00:44:45 -0700 (PDT) Received: from rxps.home ([2600:8800:1e00:242:71a0:9ddd:9d48:afb]) by smtp.gmail.com with ESMTPSA id v184sm4186679pgd.34.2019.08.16.00.44.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2019 00:44:45 -0700 (PDT) From: Ronan Pigott X-Google-Original-From: Ronan Pigott To: linux-bluetooth@vger.kernel.org Cc: Ronan Pigott Subject: [PATCH BlueZ 1/3] client/main: add help option for available args Date: Fri, 16 Aug 2019 00:43:31 -0700 Message-Id: <20190816074333.24673-2-rpigott@berkeley.edu> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20190816074333.24673-1-rpigott@berkeley.edu> References: <20190816074333.24673-1-rpigott@berkeley.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Ronan Pigott --- client/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/main.c b/client/main.c index 578b3c7c3..0f810901a 100644 --- a/client/main.c +++ b/client/main.c @@ -800,6 +800,14 @@ static gboolean parse_argument(int argc, char *argv[], const char **arg_table, { const char **opt; + if (!strcmp(argv[1], "help")) { + for (opt = arg_table; opt && *opt; opt++) { + bt_shell_printf("%s\n", *opt); + } + bt_shell_noninteractive_quit(EXIT_SUCCESS); + return FALSE; + } + if (!strcmp(argv[1], "on") || !strcmp(argv[1], "yes")) { *value = TRUE; if (option) -- 2.22.1