btrfs-map-logical supports both short and long options, and also every option should follow an arg,fix it.
Signed-off-by: Wang Shilong <wangsl.f...@cn.fujitsu.com> Signed-off-by: Qu Wenruo <quwen...@cn.fujitsu.com> --- btrfs-map-logical.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c index b9635f7..e46d812 100644 --- a/btrfs-map-logical.c +++ b/btrfs-map-logical.c @@ -86,10 +86,14 @@ struct extent_buffer *debug_read_block(struct btrfs_root *root, u64 bytenr, static void print_usage(void) { fprintf(stderr, "usage: btrfs-map-logical [options] device\n"); - fprintf(stderr, "\t-l Logical extent to map\n"); - fprintf(stderr, "\t-c Copy of the extent to read (usually 1 or 2)\n"); - fprintf(stderr, "\t-o Output file to hold the extent\n"); - fprintf(stderr, "\t-b Number of bytes to read\n"); + fprintf(stderr, + "\t-l|--logical <logical_num> Logical extent to map\n"); + fprintf(stderr, + "\t-c|--copy <copy> Copy of the extent to read (usually 1 or 2)\n"); + fprintf(stderr, + "\t-o|--output <filename> Output file to hold the extent\n"); + fprintf(stderr, + "\t-b|--bytes <bytes> Number of bytes to read\n"); exit(1); } -- 1.8.0.1 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html