forked from thoughtpolice/bcachefs-tools
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd_fs: add long parameter --human-readable to usage command
Signed-off-by: Philip Laube <[email protected]>
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|