Skip to content

Commit 11f8fe7

Browse files
committed
btrfs-progs: list-chunks: reflow help text of --sort
Now we can use newlines in option descriptions to make nicer lists for options: --sort MODE sort by a column ascending (default: pstart), MODE can be one of: pstart - physical offset, grouped by device lstart - logical offset usage - by chunk usage (implies --usage) length_p - by chunk length, secondary by physical offset length_l - by chunk length, secondary by logical offset Signed-off-by: David Sterba <[email protected]>
1 parent 761b87a commit 11f8fe7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cmds/inspect.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -699,12 +699,12 @@ static const char * const cmd_inspect_list_chunks_usage[] = {
699699
"Show chunks (block groups) layout for all devices",
700700
"",
701701
HELPINFO_UNITS_LONG,
702-
OPTLINE("--sort MODE", "sort by a column ascending (default: pstart), "
703-
"MODE can be one of: "
704-
"pstart - physical offset, grouped by device, "
705-
"lstart - logical offset, "
706-
"usage - by chunk usage (implies --usage), "
707-
"length_p - by chunk length, secondary by physical offset, "
702+
OPTLINE("--sort MODE", "sort by a column ascending (default: pstart),\n"
703+
"MODE can be one of:\n"
704+
"pstart - physical offset, grouped by device\n"
705+
"lstart - logical offset\n"
706+
"usage - by chunk usage (implies --usage)\n"
707+
"length_p - by chunk length, secondary by physical offset\n"
708708
"length_l - by chunk length, secondary by logical offset"
709709
),
710710
OPTLINE("--usage", "show usage per block group (note: this can be slow)"),

0 commit comments

Comments
 (0)