From: "Lakshmipathi.G" <lakshmipathi.g@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH] btrfs-progs: btrfs-debugfs: Display usage hint with no arguments
Date: Tue, 3 Jan 2017 12:58:13 +0100 [thread overview]
Message-ID: <20170103115813.GA3228@fedori> (raw)
Signed-off-by: Lakshmipathi.G <Lakshmipathi.G@giis.co.in>
---
btrfs-debugfs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/btrfs-debugfs b/btrfs-debugfs
index dfb8853..70419fa 100755
--- a/btrfs-debugfs
+++ b/btrfs-debugfs
@@ -392,7 +392,9 @@ parser.add_argument('-f', '--file', action='store_const', const=1, help='get fil
args = parser.parse_args()
-if args.block_group:
+if not (args.block_group or args.file):
+ print "No arguments passed. Type 'btrfs-debugfs -h' for usage."
+elif args.block_group:
for i in args.path[0:]:
print_block_groups(i)
elif args.file:
--
2.7.4
next reply other threads:[~2017-01-03 11:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-03 11:58 Lakshmipathi.G [this message]
2017-01-03 14:46 ` [PATCH] btrfs-progs: btrfs-debugfs: Display usage hint with no arguments David Sterba
2017-01-03 15:28 ` Lakshmipathi.G
2017-01-03 16:06 ` David Sterba
[not found] ` <ae61834f-3157-dbef-5566-ac102d43cbc4@cn.fujitsu.com>
2017-01-04 14:13 ` Lakshmipathi.G
-- strict thread matches above, loose matches on Subject: below --
2017-01-03 10:50 Lakshmipathi.G
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=20170103115813.GA3228@fedori \
--to=lakshmipathi.g@gmail.com \
--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).