HADOOP-6414. Add command line help for -expunge command. Contributed by Ravi Phulari.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@890551 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas White 2009-12-14 23:28:40 +00:00
parent c4e1126980
commit 22fb49704b
2 changed files with 7 additions and 0 deletions

View File

@ -83,6 +83,9 @@ Trunk (unreleased changes)
HADOOP-6428. HttpServer sleeps with negative values. (cos)
HADOOP-6414. Add command line help for -expunge command.
(Ravi Phulari via tomwhite)
Release 0.21.0 - Unreleased
INCOMPATIBLE CHANGES

View File

@ -1505,6 +1505,8 @@ private void printHelp(String cmd) {
String chgrp = FsShellPermissions.CHGRP_USAGE + "\n" +
"\t\tThis is equivalent to -chown ... :GROUP ...\n";
String expunge = "-expunge: Empty the Trash.\n";
String help = "-help [cmd]: \tDisplays help for given command or all commands if none\n" +
"\t\tis specified.\n";
@ -1527,6 +1529,8 @@ private void printHelp(String cmd) {
System.out.println(dus);
} else if ("rm".equals(cmd)) {
System.out.println(rm);
} else if ("expunge".equals(cmd)) {
System.out.println(expunge);
} else if ("rmr".equals(cmd)) {
System.out.println(rmr);
} else if ("mkdir".equals(cmd)) {