From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e9nRp-00047K-Kc for barebox@lists.infradead.org; Wed, 01 Nov 2017 07:28:32 +0000 From: Enrico Jorns Date: Wed, 1 Nov 2017 08:27:09 +0100 Message-Id: <20171101072710.31518-6-ejo@pengutronix.de> In-Reply-To: <20171101072710.31518-1-ejo@pengutronix.de> References: <20171101072710.31518-1-ejo@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 5/6] commands: nv: adjust command help To: barebox@lists.infradead.org Cc: Enrico Jorns Help did not point out that -r option requires n arguments and did not mention support for removing variables in help text. Also introduce and consistently reuse 'NV' as abbreviation for 'non volatile'. Signed-off-by: Enrico Jorns --- commands/nv.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/nv.c b/commands/nv.c index ebef97eae7..4ea6d1774e 100644 --- a/commands/nv.c +++ b/commands/nv.c @@ -88,19 +88,19 @@ static int do_nv(int argc, char *argv[]) } BAREBOX_CMD_HELP_START(nv) -BAREBOX_CMD_HELP_TEXT("Add a new non volatile variable named VAR, optionally set to VALUE.") -BAREBOX_CMD_HELP_TEXT("non volatile variables are persistent variables that overwrite the") +BAREBOX_CMD_HELP_TEXT("Add a new non volatile (NV) variable named VAR, optionally set to VALUE.") +BAREBOX_CMD_HELP_TEXT("NV variables are persistent variables that overwrite the") BAREBOX_CMD_HELP_TEXT("global variables of the same name. Their value is saved implicitly with") BAREBOX_CMD_HELP_TEXT("'saveenv' or explicitly with 'nv -s'") BAREBOX_CMD_HELP_TEXT("") BAREBOX_CMD_HELP_TEXT("Options:") -BAREBOX_CMD_HELP_OPT("-r", "remove non volatile variables") -BAREBOX_CMD_HELP_OPT("-s", "Save NV variables") +BAREBOX_CMD_HELP_OPT("-r VAR1 ...", "remove NV variable(s)") +BAREBOX_CMD_HELP_OPT("-s\t", "save NV variables") BAREBOX_CMD_HELP_END BAREBOX_CMD_START(nv) .cmd = do_nv, - BAREBOX_CMD_DESC("create or set non volatile variables") + BAREBOX_CMD_DESC("create, set or remove non volatile (NV) variables") BAREBOX_CMD_OPTS("[-r] VAR[=VALUE] ...") BAREBOX_CMD_GROUP(CMD_GRP_ENV) BAREBOX_CMD_HELP(cmd_nv_help) -- 2.11.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox