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:
parent
1e7fd0c23c
commit
a7ce0bbf8a
@ -173,6 +173,9 @@ Trunk (unreleased changes)
|
|||||||
HADOOP-7302. webinterface.private.actions should be renamed and moved to
|
HADOOP-7302. webinterface.private.actions should be renamed and moved to
|
||||||
the MapReduce project. (Ari Rabkin via todd)
|
the MapReduce project. (Ari Rabkin via todd)
|
||||||
|
|
||||||
|
HADOOP-7329. Improve help message for "df" to include "-h" flag.
|
||||||
|
(Xie Xianshan via todd)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
@ -55,12 +55,14 @@ protected String formatSize(long size) {
|
|||||||
/** Show the size of a partition in the filesystem */
|
/** Show the size of a partition in the filesystem */
|
||||||
public static class Df extends FsUsage {
|
public static class Df extends FsUsage {
|
||||||
public static final String NAME = "df";
|
public static final String NAME = "df";
|
||||||
public static final String USAGE = "[<path> ...]";
|
public static final String USAGE = "[-h] [<path> ...]";
|
||||||
public static final String DESCRIPTION =
|
public static final String DESCRIPTION =
|
||||||
"Shows the capacity, free and used space of the filesystem.\n"+
|
"Shows the capacity, free and used space of the filesystem.\n"+
|
||||||
"If the filesystem has multiple partitions, and no path to a\n" +
|
"If the filesystem has multiple partitions, and no path to a\n" +
|
||||||
"particular partition is specified, then the status of the root\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
|
@Override
|
||||||
protected void processOptions(LinkedList<String> args)
|
protected void processOptions(LinkedList<String> args)
|
||||||
|
Loading…
Reference in New Issue
Block a user