From: Hubert Kario <kario@wit.edu.pl>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH 1/2] add advanced use of --help to help message
Date: Sun, 23 Jan 2011 13:39:36 +0100 [thread overview]
Message-ID: <201101231339.36599.kario@wit.edu.pl> (raw)
explain how to use
btrfs <cmd> --help
command in help message
Signed-off-by: Hubert Kario <kario@wit.edu.pl>
---
btrfs.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/btrfs.c b/btrfs.c
index 46314cf..b84607a 100644
--- a/btrfs.c
+++ b/btrfs.c
@@ -151,6 +151,8 @@ static void help(char *np)
print_help(np, cp);
printf("\n\t%s help|--help|-h\n\t\tShow the help.\n",np);
+ printf("\n\t%s <cmd> --help\n\t\tShow detailed help for a command
or\n\t\t"
+ "subset of commands.\n",np);
printf("\n%s\n", BTRFS_BUILD_VERSION);
}
--
1.7.3.5
next reply other threads:[~2011-01-23 12:39 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-23 12:39 Hubert Kario [this message]
2011-01-23 12:42 ` [PATCH 2/2] add detailed help messages to btrfs command Hubert Kario
2011-01-23 14:07 ` Goffredo Baroncelli
2011-01-23 14:26 ` Helmut Hullen
2011-01-23 14:43 ` Felix Blanke
2011-01-23 14:28 ` Hubert Kario
2011-01-23 14:54 ` Goffredo Baroncelli
2011-01-23 15:06 ` Hubert Kario
2011-07-11 15:13 ` Jan Schmidt
2011-07-11 18:38 ` Goffredo Baroncelli
2011-07-11 19:11 ` Jan Schmidt
2011-07-11 20:35 ` Goffredo Baroncelli
2011-07-11 22:22 ` Hugo Mills
2011-07-12 10:49 ` Hubert Kario
2011-07-12 10:40 ` Hubert Kario
2011-07-12 10:43 ` Hugo Mills
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201101231339.36599.kario@wit.edu.pl \
--to=kario@wit.edu.pl \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).