Skip to content

Commit

Permalink
Merge pull request #189 from Dikay900/fs_human_readable
Browse files Browse the repository at this point in the history
cmd_fs: add long parameter --human-readable to usage command
  • Loading branch information
koverstreet authored Dec 6, 2023
2 parents cf78a3f + ec028b4 commit 5d89268
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,15 @@ static void fs_usage_usage(void)
"\n"
"Options:\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 <[email protected]>");
}

int cmd_fs_usage(int argc, char *argv[])
{
static const struct option longopts[] = {
{ "help", no_argument, NULL, 'H' },
{ "human-readable", no_argument, NULL, 'h' },
{ NULL }
};
bool human_readable = false;
Expand Down

0 comments on commit 5d89268

Please sign in to comment.