Merge pull request #189 from Dikay900/fs_human_readable

cmd_fs: add long parameter --human-readable to usage command
This commit is contained in:
koverstreet 2023-12-06 13:58:01 -05:00 committed by GitHub
commit 5d892680cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;