Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme-cli: update command message for "help"
@ 2019-06-01  5:54 Minwoo Im
  2019-06-02  7:12 ` Sagi Grimberg
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Minwoo Im @ 2019-06-01  5:54 UTC (permalink / raw)


The "help" subcommand will show the man page, not the help message which
is printed out to stdout by --help option.  The previous message might
make confusions between man page and --help options so that it needs to
be updated.

Cc: Keith Busch <kbusch at kernel.org>
Signed-off-by: Minwoo Im <minwoo.im.dev at gmail.com>
---
 plugin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin.c b/plugin.c
index 4750df6..8fd0605 100644
--- a/plugin.c
+++ b/plugin.c
@@ -91,7 +91,7 @@ void general_help(struct plugin *plugin)
 					plugin->commands[i]->help);
 
 	printf("  %-*s %s\n", padding, "version", "Shows the program version");
-	printf("  %-*s %s\n", padding, "help", "Display this help");
+	printf("  %-*s %s\n", padding, "help", "Display the man page");
 	printf("\n");
 
 	if (plugin->name)
-- 
2.21.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH] nvme-cli: update command message for "help"
  2019-06-01  5:54 [PATCH] nvme-cli: update command message for "help" Minwoo Im
@ 2019-06-02  7:12 ` Sagi Grimberg
  2019-06-02 23:18 ` Chaitanya Kulkarni
  2019-07-24 17:17 ` Keith Busch
  2 siblings, 0 replies; 5+ messages in thread
From: Sagi Grimberg @ 2019-06-02  7:12 UTC (permalink / raw)


Reviewed-by: Sagi Grimberg <sagi at grimberg.me>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] nvme-cli: update command message for "help"
  2019-06-01  5:54 [PATCH] nvme-cli: update command message for "help" Minwoo Im
  2019-06-02  7:12 ` Sagi Grimberg
@ 2019-06-02 23:18 ` Chaitanya Kulkarni
  2019-07-24 17:17 ` Keith Busch
  2 siblings, 0 replies; 5+ messages in thread
From: Chaitanya Kulkarni @ 2019-06-02 23:18 UTC (permalink / raw)


Looks good to me.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>

On 5/31/19 10:55 PM, Minwoo Im wrote:
> The "help" subcommand will show the man page, not the help message which
> is printed out to stdout by --help option.  The previous message might
> make confusions between man page and --help options so that it needs to
> be updated.
>
> Cc: Keith Busch <kbusch at kernel.org>
> Signed-off-by: Minwoo Im <minwoo.im.dev at gmail.com>
> ---
>  plugin.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/plugin.c b/plugin.c
> index 4750df6..8fd0605 100644
> --- a/plugin.c
> +++ b/plugin.c
> @@ -91,7 +91,7 @@ void general_help(struct plugin *plugin)
>  					plugin->commands[i]->help);
>  
>  	printf("  %-*s %s\n", padding, "version", "Shows the program version");
> -	printf("  %-*s %s\n", padding, "help", "Display this help");
> +	printf("  %-*s %s\n", padding, "help", "Display the man page");
>  	printf("\n");
>  
>  	if (plugin->name)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] nvme-cli: update command message for "help"
  2019-06-01  5:54 [PATCH] nvme-cli: update command message for "help" Minwoo Im
  2019-06-02  7:12 ` Sagi Grimberg
  2019-06-02 23:18 ` Chaitanya Kulkarni
@ 2019-07-24 17:17 ` Keith Busch
  2019-07-25 13:25   ` Minwoo Im
  2 siblings, 1 reply; 5+ messages in thread
From: Keith Busch @ 2019-07-24 17:17 UTC (permalink / raw)


On Sat, Jun 01, 2019@02:54:28PM +0900, Minwoo Im wrote:
> The "help" subcommand will show the man page, not the help message which
> is printed out to stdout by --help option.  The previous message might
> make confusions between man page and --help options so that it needs to
> be updated.

If you just type "nvme help", you get that help message. If you type
"nvme help <command>", then you get that command's manpage. This
behavior was copied from 'git'.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] nvme-cli: update command message for "help"
  2019-07-24 17:17 ` Keith Busch
@ 2019-07-25 13:25   ` Minwoo Im
  0 siblings, 0 replies; 5+ messages in thread
From: Minwoo Im @ 2019-07-25 13:25 UTC (permalink / raw)


On 19-07-24 11:17:45, Keith Busch wrote:
> On Sat, Jun 01, 2019@02:54:28PM +0900, Minwoo Im wrote:
> > The "help" subcommand will show the man page, not the help message which
> > is printed out to stdout by --help option.  The previous message might
> > make confusions between man page and --help options so that it needs to
> > be updated.
> 
> If you just type "nvme help", you get that help message. If you type
> "nvme help <command>", then you get that command's manpage. This
> behavior was copied from 'git'.

Hi Keith,

Yes, That's what I meant in this patch, but it does not look like cover
"nvme help" command itself.

Let's keep it that way, then.

Thanks!

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-07-25 13:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-01  5:54 [PATCH] nvme-cli: update command message for "help" Minwoo Im
2019-06-02  7:12 ` Sagi Grimberg
2019-06-02 23:18 ` Chaitanya Kulkarni
2019-07-24 17:17 ` Keith Busch
2019-07-25 13:25   ` Minwoo Im

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox