summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2012-09-29 18:44:18 +0200
committerPádraig Brady <P@draigBrady.com>2012-11-08 16:12:02 +0000
commitae3c2b4620e505dc35af70b02fe9c724fb95d68d (patch)
tree4bb6d55782356ba21b8508cbd05ecdf3870bf811 /src
parentdae8d223b69bdea7c8913d33640a7b36ef0ff755 (diff)
downloadcoreutils-ae3c2b4620e505dc35af70b02fe9c724fb95d68d.tar.xz
df: document the new --output option
* src/df.c (usage): Add a short description of --output and its available field names for use in the optional argument. * doc/coreutils.texi (df invocation): Add the new option with more details and a few examples. * NEWS (New features): Mention the new option. (Changes in behvaior): Mention the new placeholder for fields in the "total" line.
Diffstat (limited to 'src')
-rw-r--r--src/df.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/df.c b/src/df.c
index 2f4208d57..c62d16b50 100644
--- a/src/df.c
+++ b/src/df.c
@@ -1149,6 +1149,8 @@ Mandatory arguments to long options are mandatory for short options too.\n\
\n\
"), stdout);
fputs (_("\
+ --output[=FIELD_LIST] use the output format defined by FIELD_LIST,\n\
+ or print all fields if FIELD_LIST is omitted.\n\
-P, --portability use the POSIX output format\n\
--sync invoke sync before getting usage info\n\
-t, --type=TYPE limit listing to file systems of type TYPE\n\
@@ -1160,6 +1162,11 @@ Mandatory arguments to long options are mandatory for short options too.\n\
fputs (VERSION_OPTION_DESCRIPTION, stdout);
emit_blocksize_note ("DF");
emit_size_note ();
+ fputs (_("\n\
+FIELD_LIST is a comma-separated list of columns to be included. Valid\n\
+field names are: 'source', 'fstype', 'size', 'used', 'avail', 'pcent',\n\
+'itotal', 'iused', 'iavail', 'ipcent' and 'target' (see info page).\n\
+"), stdout);
emit_ancillary_info ();
}
exit (status);