summaryrefslogtreecommitdiff
path: root/src/du.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-11-23 15:41:16 +0000
committerJim Meyering <jim@meyering.net>2001-11-23 15:41:16 +0000
commita5f1ced62a3a3288f72d4f494e61122e7d407498 (patch)
tree86aa6bbd3b956c22f07bc460d1929dedb4a5daa1 /src/du.c
parent2e55f173989ab21bb87fd3c2c6bd12305469e179 (diff)
downloadcoreutils-a5f1ced62a3a3288f72d4f494e61122e7d407498.tar.xz
(usage): Split --help output into smaller pieces.
Use fputs, not printf.
Diffstat (limited to 'src/du.c')
-rw-r--r--src/du.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/du.c b/src/du.c
index cfde26905..8f0c4774a 100644
--- a/src/du.c
+++ b/src/du.c
@@ -187,7 +187,7 @@ usage (int status)
else
{
printf (_("Usage: %s [OPTION]... [FILE]...\n"), program_name);
- printf (_("\
+ fputs (_("\
Summarize disk usage of each FILE, recursively for directories.\n\
\n\
-a, --all write counts for all files, not just directories\n\
@@ -195,14 +195,20 @@ Summarize disk usage of each FILE, recursively for directories.\n\
-b, --bytes print size in bytes\n\
-c, --total produce a grand total\n\
-D, --dereference-args dereference PATHs when symbolic link\n\
+"), stdout);
+ fputs (_("\
-h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G)\n\
-H, --si likewise, but use powers of 1000 not 1024\n\
-k, --kilobytes like --block-size=1024\n\
-l, --count-links count sizes many times if hard linked\n\
+"), stdout);
+ fputs (_("\
-L, --dereference dereference all symbolic links\n\
-m, --megabytes like --block-size=1048576\n\
-S, --separate-dirs do not include size of subdirectories\n\
-s, --summarize display only a total for each argument\n\
+"), stdout);
+ fputs (_("\
-x, --one-file-system skip directories on different filesystems\n\
-X FILE, --exclude-from=FILE Exclude files that match any pattern in FILE.\n\
--exclude=PAT Exclude files that match PAT.\n\
@@ -210,9 +216,11 @@ Summarize disk usage of each FILE, recursively for directories.\n\
only if it is N or fewer levels below the command\n\
line argument; --max-depth=0 is the same as\n\
--summarize\n\
+"), stdout);
+ fputs (_("\
--help display this help and exit\n\
--version output version information and exit\n\
-"));
+"), stdout);
puts (_("\nReport bugs to <bug-fileutils@gnu.org>."));
}
exit (status);