summaryrefslogtreecommitdiff
path: root/src/du.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-10-04 12:11:51 +0000
committerJim Meyering <jim@meyering.net>2003-10-04 12:11:51 +0000
commit2331952ff1bcc9fbf308de96793207779a14fdf0 (patch)
tree7d6c5b44c12beec43bbca53549d512e08ee5c731 /src/du.c
parentbc7d3363ac228e59ae1af40af90606d8da34f978 (diff)
downloadcoreutils-2331952ff1bcc9fbf308de96793207779a14fdf0.tar.xz
(enum) [HUMAN_SI_OPTION]: New member.
[long_options]: Use HUMAN_SI_OPTION, not 'H'. (main): Warn that the meaning of -H will soon change.
Diffstat (limited to 'src/du.c')
-rw-r--r--src/du.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/du.c b/src/du.c
index 1c9c87683..478b21434 100644
--- a/src/du.c
+++ b/src/du.c
@@ -116,6 +116,7 @@ enum
{
APPARENT_SIZE_OPTION = CHAR_MAX + 1,
EXCLUDE_OPTION,
+ HUMAN_SI_OPTION,
MAX_DEPTH_OPTION
};
@@ -131,7 +132,7 @@ static struct option const long_options[] =
{"exclude", required_argument, 0, EXCLUDE_OPTION},
{"exclude-from", required_argument, 0, 'X'},
{"human-readable", no_argument, NULL, 'h'},
- {"si", no_argument, 0, 'H'},
+ {"si", no_argument, 0, HUMAN_SI_OPTION},
{"kilobytes", no_argument, NULL, 'k'}, /* long form is obsolescent */
{"max-depth", required_argument, NULL, MAX_DEPTH_OPTION},
{"megabytes", no_argument, NULL, 'm'}, /* obsolescent */
@@ -584,6 +585,10 @@ main (int argc, char **argv)
break;
case 'H':
+ error (0, 0, _("WARNING: use --si, not -H; the meaning of the -H\
+ option will soon\nchange to be the same as that of --dereference-args (-D)"));
+ /* fall through */
+ case HUMAN_SI_OPTION:
human_output_opts = human_autoscale | human_SI;
output_block_size = 1;
break;