Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp813498ybl; Fri, 16 Aug 2019 04:32:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHwFL5ooLD1pgh6o6qoKpYWKB5suZT+N3HTkvGTBN/JFlrzsU1eVAefuejhDL0T24eF+7D X-Received: by 2002:a65:64c4:: with SMTP id t4mr6859579pgv.298.1565955131240; Fri, 16 Aug 2019 04:32:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565955131; cv=none; d=google.com; s=arc-20160816; b=aBaKnQsdj2QvMZb9uYxv21G3J8RjDNVwT28n2BskL6KJlw7gf2T/tnP3xx4JRA+fwR DuNTnJcWf6qexzYlBV9BeV9Lan0SKi79VSsvq8hkOXV/nhSZfM32jmRfli5QVAu0bWLb PBUsp6OjDmqUJ6QysOl/YS/ivHtNviV1tHaPOYgJ9HC2501IIRSdlJ+jtPizl3UyqnwD /QkbmuHqlMmSsGTIR3SjEqjN3MZ2PJaYXMViAey6ifzwlgOa3vrQCQoqA9vhX2QuhEel 31Cn/nQ81SiaFw4en80v8oaKa19FsIbIF4jDgGupety4Oxx43e3tRU+MOTwHAveeFcpV tjOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=hf4B+TCFn0aLwKFeXZ7c6BbNprRPxYGB7ZudZlmir6M=; b=nBN9Q8m9Z7KI7Te6I23PPosmoSa4k5XGuNtl9wCC9hZbddyYmpvqkWODCqhs0n8snW HfN8EDoOPbkSChTIfaUA6Q3T30krEbivQIIRCiLjc8/3TxucUwhmXBlSs2am5D/Hel35 c2S9Q+68y8NSjp3g0+RPmyjwCOMQ2oED2Mm7DqWtVF7poaSfAkUDVNysiNuWLjw3NW5R SkXPWLqO8a+TG5f73Uv2woOKu7GMpei/H+Q+OYXA2afR1KlZfQr+O+aGCVy+UNE8Li3q j0lGmGROWnv6rOYcA9yeWaaHqErKrtPXYQQjDLJsOBk3BDx5bYtOqejh23NZ4GxzesrQ l02g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TJHVFFfq; 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 y9si4133693pfm.236.2019.08.16.04.31.36; Fri, 16 Aug 2019 04:32:11 -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=TJHVFFfq; 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 S1727007AbfHPL31 (ORCPT + 99 others); Fri, 16 Aug 2019 07:29:27 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:36276 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727104AbfHPL31 (ORCPT ); Fri, 16 Aug 2019 07:29:27 -0400 Received: by mail-ot1-f67.google.com with SMTP id k18so9352406otr.3 for ; Fri, 16 Aug 2019 04:29:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hf4B+TCFn0aLwKFeXZ7c6BbNprRPxYGB7ZudZlmir6M=; b=TJHVFFfqcI2vFNJAkLZNxezpyCyxSn+geuiOeKHAQkvKKRXfhnYu88gQb6hfPsTKKk iwMfZJG3Ko0i5fRJytjqHsCc3BSda6M3nx6Myy/0xt1lAYs/PCxMZFeAVixML8pByd4f VFSUp+MmpdGBgm24B8Y98UjctdvgQvorSQ21oqIonNN26YIhdLk8IRILCqyloYN6dqbR In1m/7s6vu4o5SVkWZ+TFHQz7rZa/QUxdY+dzgj6i2bk17CsOCa7UT3LErlvmeLLfkx4 +qrSFvzg1tS1boLSRvfEbEzp4KQE3jtor2R+nJR1HqH3zY/HBh+F3e9MzNxPRpMYgKVn YgwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hf4B+TCFn0aLwKFeXZ7c6BbNprRPxYGB7ZudZlmir6M=; b=t0ORgP9loG1dNCgRzbYfbzVXS3NvTY/FInFOKXiWOj1fh4EmSQPjpAMhm6IUlj8aXd pZ7jVsidpWi5JTX2HkgotSnNrh7Tk92IDt4EHlmi459f/roW8RbliINvkU000/kB8j3J d/0MU8JYY3TtihlcPp8kDDAIOiHmPYCS3Li6JebZlmmpcxXPqMEanLZ87eudiDr1Y998 J9dsW1hu6kFds/f0BfR6nZAdsAodWrgGs3ts+tKIriNjd9eXK6z7Fa2fG4GcxxjrtsTr UEkyOH0ykGgiizkduxRsIXCJjF2fBHnBSdA/BsYf4BAPAfbMXSCZWX+D0/07QBqi3ziP 4DdQ== X-Gm-Message-State: APjAAAWgxPPrIfIRRUKL2RvuK9jtkM4+jXGgr1DcnSZsR33e7bNaEyqt Sq65udm+yhY7JtJpJ4TcJCkv8Xv4cwidYteCrDg= X-Received: by 2002:a05:6830:1699:: with SMTP id k25mr7380560otr.11.1565954966380; Fri, 16 Aug 2019 04:29:26 -0700 (PDT) MIME-Version: 1.0 References: <20190816074333.24673-1-rpigott@berkeley.edu> <20190816074333.24673-2-rpigott@berkeley.edu> In-Reply-To: <20190816074333.24673-2-rpigott@berkeley.edu> From: Luiz Augusto von Dentz Date: Fri, 16 Aug 2019 14:29:13 +0300 Message-ID: Subject: Re: [PATCH BlueZ 1/3] client/main: add help option for available args To: Ronan Pigott Cc: "linux-bluetooth@vger.kernel.org" , Ronan Pigott Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Ronan, On Fri, Aug 16, 2019 at 10:46 AM Ronan Pigott wrote: > > From: Ronan Pigott Can you a description of what the changes does, perhaps a sample when uses in some command. > --- > 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 > -- Luiz Augusto von Dentz