From patchwork Wed Dec 30 22:02:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baptiste Jonglez X-Patchwork-Id: 1421460 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bitsofnetworks.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=u/uReHfd; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4D5ljQ6PQKz9sSf for ; Thu, 31 Dec 2020 09:06:01 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=N7rPn9GVSD1Ql1Y1cWMTR/mKYeTEgVFE4K/rcob6p4Y=; b=u/uReHfdXkRLRn/LaoVfsfemPG +ALDxcg9HBk0ufJi9Des/DsfIhPJs06e6btBMCZiNmho2qIaEQutxIQp8D+uTv53UXSVjAddamDqO BmUjsiphibKbDz/ExOfIBkdnWZxUyki5Rf5cZlQj1zI+xNjjt01MCF7cA2xl9LtB0NpPS5jJzs9HA bzu2xaVsFfjXqFb8P394ogwVrhu1j8YRQB7EHndSKXlxLlb3l6/fhxYoBn4lrWMer6bM5R+FqWger yUK/WgwvBAoOX0+MarlI0KBF/+wUe7ncbziVfT8U0mAyUid/BL+S//Ss6190zkwfWu8CbOuujgmt4 fCd30rnA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kujYl-0005DH-Cn; Wed, 30 Dec 2020 22:03:11 +0000 Received: from mails.bitsofnetworks.org ([2001:912:1800:ff::131]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kujYg-0005Cu-Ha for openwrt-devel@lists.openwrt.org; Wed, 30 Dec 2020 22:03:07 +0000 Received: from [2001:912:1800::ac1] (helo=fedic.lan) by mails.bitsofnetworks.org with esmtp (Exim 4.89) (envelope-from ) id 1kujYb-0002yb-5D; Wed, 30 Dec 2020 23:03:01 +0100 From: Baptiste Jonglez To: openwrt-devel@lists.openwrt.org Subject: [PATCH uclient] uclient-fetch: document missing options Date: Wed, 30 Dec 2020 23:02:41 +0100 Message-Id: <20201230220241.412057-1-baptiste@bitsofnetworks.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201230_170306_718390_F4EDB685 X-CRM114-Status: GOOD ( 10.77 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Baptiste Jonglez Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From: Baptiste Jonglez Missing ones were: --no-proxy, --quiet, --continue / -c Also improved readability of several options. Signed-off-by: Baptiste Jonglez --- uclient-fetch.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/uclient-fetch.c b/uclient-fetch.c index 958f756..282092e 100644 --- a/uclient-fetch.c +++ b/uclient-fetch.c @@ -475,17 +475,20 @@ static int usage(const char *progname) "Options:\n" " -4 Use IPv4 only\n" " -6 Use IPv6 only\n" - " -q Turn off status messages\n" " -O Redirect output to file (use \"-\" for stdout)\n" " -P Set directory for output files\n" + " --quiet | -q Turn off status messages\n" + " --continue | -c Continue a partially-downloaded file\n" " --user= HTTP authentication username\n" " --password= HTTP authentication password\n" - " --user-agent|-U Set HTTP user agent\n" + " --user-agent | -U Set HTTP user agent\n" " --post-data=STRING use the POST method; send STRING as the data\n" " --post-file=FILE use the POST method; send FILE as the data\n" - " --spider|-s Spider mode - only check file existence\n" - " --timeout=N|-T N Set connect/request timeout to N seconds\n" - " --proxy=on|off|-Y on|off Enable/disable env var configured proxy\n" + " --spider | -s Spider mode - only check file existence\n" + " --timeout=N | -T N Set connect/request timeout to N seconds\n" + " --proxy=on | -Y on Enable interpretation of proxy env vars (default)\n" + " --proxy=off | -Y off |\n" + " --no-proxy Disable interpretation of proxy env vars\n" "\n" "HTTPS options:\n" " --ca-certificate= Load CA certificates from file \n"