btrfs-progs: property: convert help text to option formatter

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2023-02-22 01:37:18 +01:00
parent 251d397870
commit 8c0d870ac7
1 changed files with 4 additions and 7 deletions

View File

@ -582,8 +582,7 @@ static const char * const cmd_property_get_usage[] = {
"Possible values for type are: inode, subvol, filesystem, device.", "Possible values for type are: inode, subvol, filesystem, device.",
"They can be abbreviated to the first letter, i/s/f/d", "They can be abbreviated to the first letter, i/s/f/d",
"", "",
"-t <TYPE> list properties for the given object type (inode, subvol,", OPTLINE("-t <TYPE>", "list properties for the given object type (inode, subvol, filesystem, device)"),
" filesystem, device)",
NULL NULL
}; };
@ -614,9 +613,8 @@ static const char * const cmd_property_set_usage[] = {
"Set a property on a btrfs object where object is a path to file or", "Set a property on a btrfs object where object is a path to file or",
"directory and can also represent the filesystem or device based on the type", "directory and can also represent the filesystem or device based on the type",
"", "",
"-t <TYPE> list properties for the given object type (inode, subvol,", OPTLINE("-t <TYPE>", "list properties for the given object type (inode, subvol, filesystem, device)"),
" filesystem, device)", OPTLINE("-f", "force the change, could potentially break something"),
"-f force the change, could potentially break something\n",
NULL NULL
}; };
@ -646,8 +644,7 @@ static const char * const cmd_property_list_usage[] = {
"See the help of 'btrfs property get' for a description of", "See the help of 'btrfs property get' for a description of",
"objects and object types.", "objects and object types.",
"", "",
"-t <TYPE> list properties for the given object type (inode, subvol,", OPTLINE("-t <TYPE>", "list properties for the given object type (inode, subvol, filesystem, device)"),
" filesystem, device)",
NULL NULL
}; };