HADOOP-7329. Improve help message for "df" to include "-h" flag. Contributed by Xie Xianshan.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1127576 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Todd Lipcon 2011-05-25 16:32:58 +00:00
parent 1e7fd0c23c
commit a7ce0bbf8a
2 changed files with 7 additions and 2 deletions

View File

@ -173,6 +173,9 @@ Trunk (unreleased changes)
HADOOP-7302. webinterface.private.actions should be renamed and moved to
the MapReduce project. (Ari Rabkin via todd)
HADOOP-7329. Improve help message for "df" to include "-h" flag.
(Xie Xianshan via todd)
OPTIMIZATIONS
BUG FIXES

View File

@ -55,12 +55,14 @@ protected String formatSize(long size) {
/** Show the size of a partition in the filesystem */
public static class Df extends FsUsage {
public static final String NAME = "df";
public static final String USAGE = "[<path> ...]";
public static final String USAGE = "[-h] [<path> ...]";
public static final String DESCRIPTION =
"Shows the capacity, free and used space of the filesystem.\n"+
"If the filesystem has multiple partitions, and no path to a\n" +
"particular partition is specified, then the status of the root\n" +
"partitions will be shown.";
"partitions will be shown.\n" +
" -h Formats the sizes of files in a human-readable fashion\n" +
" rather than a number of bytes.\n\n";
@Override
protected void processOptions(LinkedList<String> args)