Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8372595ybi; Tue, 23 Jul 2019 07:27:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqygOLHX1vAQEMS2HWOT3cZLz3vP4tr4sQ94riggfhc3tLqx+V0C/KZrdKDKLwmflRResT8n X-Received: by 2002:a62:5252:: with SMTP id g79mr5945341pfb.18.1563892062278; Tue, 23 Jul 2019 07:27:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563892062; cv=none; d=google.com; s=arc-20160816; b=DdHQnhCPEgAeFkswCQyiAfidE8uiTnZufLOXrU4yiR3apT1x5RBCCpZZYfni+0QMsT tm0HUmMpjx49aHsKpk+iOdqihYd/ZpeygjBIaVT+LXpyH/S326MbM8Z0ArrxEEHW6/0X djNnwejdGG+iCsDfH+Luf90bzYjx54nUR0Wva6KU3qpgbq8SWeI84kgd0nTznfKD4Gre DUJXVx1E+aM7YggNCJHPcUDQ9InuacdAhjx00FhfTFBCMNcSVSqX2VAQGgGtuNH+qUsC CyEQKf9/E7VGwL1cKHJOYlShyoF8oiml80GF39s+fABxiljx9nnoz8edT83Q7MeO7w8l 0xoQ== 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; bh=gvluG/KExGooBqaunknrnTqUf47F8rS7k8ifBu64DIQ=; b=BJjWH+9i5PhM9V0Z60mXjwdlvs6LrX2V2kfbPwXmp2HwBYIMNL2Yha+pTGqcjGhDsu fuuP0z7zJh8MjEwnkwtZKTs7K/odNBnnOWtAr9LujINzmFzmv6aXBw1n3vOaN7gDBtR0 PabIIk2J7xm3pCg6pyFxKccAcISKc2N9J3myPD0n/unG5F2mmg1gQau7042vCDM8Qh0X a7MGTYlD7U+kfWNFZhxDSA0rw0CLEutuYVXxEHqhyY3B/3kdbHfiMiAscHh15btQB/I1 jxe2GZLuAQcQoAzgplYS1HBz7gRw0iFDbJ5nJkAvp8v3utx0jDprraBLjygLMJcU5vAe /LUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (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 l186si12812478pge.215.2019.07.23.07.27.16; Tue, 23 Jul 2019 07:27:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729760AbfGWG1Y (ORCPT + 99 others); Tue, 23 Jul 2019 02:27:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41160 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728180AbfGWG1Y (ORCPT ); Tue, 23 Jul 2019 02:27:24 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 207A0356D2; Tue, 23 Jul 2019 06:27:24 +0000 (UTC) Received: from localhost (dhcp-12-152.nay.redhat.com [10.66.12.152]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8E5A55C28C; Tue, 23 Jul 2019 06:27:23 +0000 (UTC) From: Yongcheng Yang To: "J . Bruce Fields" Cc: linux-nfs@vger.kernel.org, Yongcheng Yang Subject: [PATCH 2/2] nfs4_getfacl: revise the Usage format as new options added Date: Tue, 23 Jul 2019 14:27:13 +0800 Message-Id: <20190723062713.20570-2-yongcheng.yang@gmail.com> In-Reply-To: <20190723062713.20570-1-yongcheng.yang@gmail.com> References: <20190723062713.20570-1-yongcheng.yang@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 23 Jul 2019 06:27:24 +0000 (UTC) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Signed-off-by: Yongcheng Yang --- nfs4_getfacl/nfs4_getfacl.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nfs4_getfacl/nfs4_getfacl.c b/nfs4_getfacl/nfs4_getfacl.c index 2f57866..e068095 100644 --- a/nfs4_getfacl/nfs4_getfacl.c +++ b/nfs4_getfacl/nfs4_getfacl.c @@ -135,7 +135,16 @@ static void usage(int label) { if (label) fprintf(stderr, "%s %s -- get NFSv4 file or directory access control lists.\n", execname, VERSION); - fprintf(stderr, "Usage: %s [-R] file ...\n -H, --more-help\tdisplay ACL format information\n -h, --help\tdisplay this help text\n -R --recursive\trecurse into subdirectories\n -c, --omit-header\tDo not display the comment header (Do not print filename)\n", execname); + + static const char *gfusage = \ + "Usage: %s [OPTIONS] file ...\n" + " .. where OPTIONS is any (or none) of:\n" + " -H, --more-help display ACL format information\n" + " -h, --help display this help text\n" + " -R, --recursive recurse into subdirectories\n" + " -c, --omit-header Do not display the comment header (Do not print filename)\n"; + + fprintf(stderr, gfusage, execname); } static void more_help() -- 2.20.1