Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3776283ybb; Mon, 6 Apr 2020 15:44:05 -0700 (PDT) X-Google-Smtp-Source: APiQypKZvI9+0+mVD1HMtu6xUk+P9x1V0CUbDp1rwZFxdNbCyfUS+IPPgBxqCDQOX+mEtkK1/TvN X-Received: by 2002:a9d:b8f:: with SMTP id 15mr19401370oth.256.1586213045376; Mon, 06 Apr 2020 15:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586213045; cv=none; d=google.com; s=arc-20160816; b=aSCjK5inRoCM2F11IWTfFJROeICN9rguzzAOmKTy1Jz9wDLLs+sJdfHl3ADGFhr+WN f+oETHnQG14vyvldI6ssBCUYsAEazIS7POyuCwY5D7bmlTl8u/sRw2/87amXAbyHMiAR geZL7jiz7H9XPtwz3YvmWL0AI037AfY6ZpLW9wgYtY7wgeXmneqOG9xS1VCYUnhZOy1S Kmu6XAV7aLgM91EHAL6fQj+5Otp6kO9b/3h0tn5rXgxo4ASFSSqxxUXbdd9WQI0DKgfM +C+bMdp7QJ6tHCtthTjVS1cpvcipt4SuXDHwgP03XiJLX4OdrH8qSsunepJHtPdmN213 Tg2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=YllQoPZlFtquTaBkGT7/kc+gXDEhfm8WmeNW+9tx8YI=; b=l/rxTCf7aU3o81ckHGA/XHaXqF8bn/sACBNVQPbA8A8KBz3DKfQvfEPxDByEIXJkIk GYz8GYKIaeE/YToZVh2xlfH99Y/TswuWXuFwb76xJjgbOesObiAjgICyfPXkWvQhx0Hj xFPFfIWmagzp4THQP9FgTiNZBl4A+xICKZac17eMDIwZdf3oRloKrhR7WOM+VmvZgRzm bGZNd76Ph8/BZ8cY3ehDRxe/evTklh1lY8UBFfnpW3DcN129HkaoK9OnbCp0hO1IhIGx a0JPtp4kErxjrj8AEuIKyXRFu5uSCELcz5Mn8Yg9fQxR0DuNx6JJ5imb/FJuXKkN0ni4 tzsg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y18si427509oos.52.2020.04.06.15.43.32; Mon, 06 Apr 2020 15:44:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726246AbgDFWn0 (ORCPT + 99 others); Mon, 6 Apr 2020 18:43:26 -0400 Received: from 2.mo2.mail-out.ovh.net ([188.165.53.149]:34809 "EHLO 2.mo2.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbgDFWn0 (ORCPT ); Mon, 6 Apr 2020 18:43:26 -0400 X-Greylist: delayed 4201 seconds by postgrey-1.27 at vger.kernel.org; Mon, 06 Apr 2020 18:43:25 EDT Received: from player694.ha.ovh.net (unknown [10.108.35.223]) by mo2.mail-out.ovh.net (Postfix) with ESMTP id 7F6B31D12AA for ; Mon, 6 Apr 2020 22:14:13 +0200 (CEST) Received: from labapart.com (i577BCB24.versanet.de [87.123.203.36]) (Authenticated sender: olivier@labapart.com) by player694.ha.ovh.net (Postfix) with ESMTPSA id 1F0EA11165BFB; Mon, 6 Apr 2020 20:14:12 +0000 (UTC) From: Olivier Martin To: linux-bluetooth@vger.kernel.org Cc: Olivier Martin Subject: [PATCH BlueZ] emulator: Fix command line parameters with optional argument Date: Mon, 6 Apr 2020 22:14:10 +0200 Message-Id: <20200406201410.11803-1-olivier@labapart.com> X-Mailer: git-send-email 2.17.1 X-Ovh-Tracer-Id: 10202060534162615884 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedrudefgddugedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvffufffkofestddtredtredttdenucfhrhhomhepqfhlihhvihgvrhcuofgrrhhtihhnuceoohhlihhvihgvrheslhgrsggrphgrrhhtrdgtohhmqeenucfkpheptddrtddrtddrtddpkeejrdduvdefrddvtdefrdefieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrheileegrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepohhlihhvihgvrheslhgrsggrphgrrhhtrdgtohhmpdhrtghpthhtoheplhhinhhugidqsghluhgvthhoohhthhesvhhgvghrrdhkvghrnhgvlhdrohhrgh Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Some parameters were missing the indication that additional argument could be expected. --- emulator/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/emulator/main.c b/emulator/main.c index 68c53488e..3e32bf95d 100644 --- a/emulator/main.c +++ b/emulator/main.c @@ -58,8 +58,10 @@ static void usage(void) "\t-s Create local server sockets\n" "\t-l [num] Number of local controllers\n" "\t-L Create LE only controller\n" + "\t-U [num] Number of test LE controllers\n" "\t-B Create BR/EDR only controller\n" "\t-A Create AMP controller\n" + "\t-T [num] Number of test AMP controllers\n" "\t-h, --help Show help options\n"); } @@ -97,7 +99,7 @@ int main(int argc, char *argv[]) for (;;) { int opt; - opt = getopt_long(argc, argv, "Ssl::LBAUTvh", + opt = getopt_long(argc, argv, "Ssl::LBAU::T::vh", main_options, NULL); if (opt < 0) break; -- 2.17.1