summaryrefslogtreecommitdiff
path: root/cmds-filesystem.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmds-filesystem.c')
-rw-r--r--cmds-filesystem.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmds-filesystem.c b/cmds-filesystem.c
index a99ddc82..ec422e32 100644
--- a/cmds-filesystem.c
+++ b/cmds-filesystem.c
@@ -126,7 +126,8 @@ static const char * const cmd_filesystem_df_usage[] = {
"btrfs filesystem df [options] <path>",
"Show space usage information for a mount point",
"-b|--raw raw numbers in bytes",
- "-h human friendly numbers, base 1024 (default)",
+ "-h|--human-readable",
+ " human friendly numbers, base 1024 (default)",
"-H human friendly numbers, base 1000",
"--iec use 1024 as a base (KiB, MiB, GiB, TiB)",
"--si use 1000 as a base (kB, MB, GB, TB)",
@@ -218,6 +219,8 @@ static int cmd_filesystem_df(int argc, char **argv)
{ "tbytes", no_argument, NULL, 't'},
{ "si", no_argument, NULL, GETOPT_VAL_SI},
{ "iec", no_argument, NULL, GETOPT_VAL_IEC},
+ { "human-readable", no_argument, NULL,
+ GETOPT_VAL_HUMAN_READABLE},
};
int c = getopt_long(argc, argv, "bhHkmgt", long_options,
&long_index);
@@ -239,6 +242,7 @@ static int cmd_filesystem_df(int argc, char **argv)
case 't':
units_set_base(&unit_mode, UNITS_TBYTES);
break;
+ case GETOPT_VAL_HUMAN_READABLE:
case 'h':
unit_mode = UNITS_HUMAN_BINARY;
break;