hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r1127576 - in /hadoop/common/trunk: CHANGES.txt src/java/org/apache/hadoop/fs/shell/FsUsage.java
Date Wed, 25 May 2011 16:32:58 GMT
Author: todd
Date: Wed May 25 16:32:58 2011
New Revision: 1127576

URL: http://svn.apache.org/viewvc?rev=1127576&view=rev
Log:
HADOOP-7329. Improve help message for "df" to include "-h" flag. Contributed by Xie Xianshan.

Modified:
    hadoop/common/trunk/CHANGES.txt
    hadoop/common/trunk/src/java/org/apache/hadoop/fs/shell/FsUsage.java

Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=1127576&r1=1127575&r2=1127576&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Wed May 25 16:32:58 2011
@@ -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

Modified: hadoop/common/trunk/src/java/org/apache/hadoop/fs/shell/FsUsage.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/java/org/apache/hadoop/fs/shell/FsUsage.java?rev=1127576&r1=1127575&r2=1127576&view=diff
==============================================================================
--- hadoop/common/trunk/src/java/org/apache/hadoop/fs/shell/FsUsage.java (original)
+++ hadoop/common/trunk/src/java/org/apache/hadoop/fs/shell/FsUsage.java Wed May 25 16:32:58
2011
@@ -55,12 +55,14 @@ class FsUsage extends FsCommand {
   /** 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)



Mime
View raw message