btrfs-progs: update usage description for debug-tree.c

There are more options than "-e" only.
Update the description for the usage.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
This commit is contained in:
Wang Sheng-Hui 2012-11-14 15:46:21 +08:00 committed by David Sterba
parent 9495b4d228
commit 6b972e6fa5
1 changed files with 9 additions and 1 deletions

View File

@ -30,7 +30,15 @@
static int print_usage(void)
{
fprintf(stderr, "usage: debug-tree [ -e ] device\n");
fprintf(stderr, "usage: btrfs-debug-tree [ -e ] [ -d ] [ -r ] [ -R ]\n");
fprintf(stderr, " [-b block_num ] device\n");
fprintf(stderr, "\t-e : print detailed extents info\n");
fprintf(stderr, "\t-d : print info of btrfs device and root tree dirs"
" only\n");
fprintf(stderr, "\t-r : print info of roots only\n");
fprintf(stderr, "\t-R : print info of roots and root backups\n");
fprintf(stderr, "\t-b block_num : print info of the specified block"
" only\n");
fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION);
exit(1);
}