cmd_fs: add long parameter --human-readable to usage command

Signed-off-by: Philip Laube <philip.laube.dev@xyz.de>
This commit is contained in:
Philip Laube 2023-12-06 19:29:05 +01:00
parent cf78a3f65c
commit ec028b4913

View File

@ -290,7 +290,7 @@ static void fs_usage_usage(void)
"\n" "\n"
"Options:\n" "Options:\n"
" -h, --human-readable Human readable units\n" " -h, --human-readable Human readable units\n"
" --help Display this help and exit\n" " -H, --help Display this help and exit\n"
"Report bugs to <linux-bcachefs@vger.kernel.org>"); "Report bugs to <linux-bcachefs@vger.kernel.org>");
} }
@ -298,6 +298,7 @@ int cmd_fs_usage(int argc, char *argv[])
{ {
static const struct option longopts[] = { static const struct option longopts[] = {
{ "help", no_argument, NULL, 'H' }, { "help", no_argument, NULL, 'H' },
{ "human-readable", no_argument, NULL, 'h' },
{ NULL } { NULL }
}; };
bool human_readable = false; bool human_readable = false;