Return-Path: X-Original-To: apmail-hadoop-common-commits-archive@www.apache.org Delivered-To: apmail-hadoop-common-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 14CDBE742 for ; Fri, 22 Feb 2013 18:36:46 +0000 (UTC) Received: (qmail 52573 invoked by uid 500); 22 Feb 2013 18:36:45 -0000 Delivered-To: apmail-hadoop-common-commits-archive@hadoop.apache.org Received: (qmail 52357 invoked by uid 500); 22 Feb 2013 18:36:44 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 52341 invoked by uid 99); 22 Feb 2013 18:36:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2013 18:36:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2013 18:36:43 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B4DEA23889DE; Fri, 22 Feb 2013 18:36:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1449161 - in /hadoop/common/trunk/hadoop-common-project/hadoop-common: CHANGES.txt src/main/bin/hadoop Date: Fri, 22 Feb 2013 18:36:24 -0000 To: common-commits@hadoop.apache.org From: atm@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130222183624.B4DEA23889DE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: atm Date: Fri Feb 22 18:36:24 2013 New Revision: 1449161 URL: http://svn.apache.org/r1449161 Log: HADOOP-9267. hadoop -help, -h, --help should show usage instructions. Contributed by Andrew Wang. Modified: hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/bin/hadoop Modified: hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt?rev=1449161&r1=1449160&r2=1449161&view=diff ============================================================================== --- hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt (original) +++ hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt Fri Feb 22 18:36:24 2013 @@ -376,6 +376,9 @@ Release 2.0.4-beta - UNRELEASED HADOOP-9304. remove addition of avro genreated-sources dirs to build. (tucu) + HADOOP-9267. hadoop -help, -h, --help should show usage instructions. + (Andrew Wang via atm) + Release 2.0.3-alpha - 2013-02-06 INCOMPATIBLE CHANGES Modified: hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/bin/hadoop URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/bin/hadoop?rev=1449161&r1=1449160&r2=1449161&view=diff ============================================================================== --- hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/bin/hadoop (original) +++ hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/bin/hadoop Fri Feb 22 18:36:24 2013 @@ -50,6 +50,12 @@ fi COMMAND=$1 case $COMMAND in + # usage flags + --help|-help|-h) + print_usage + exit + ;; + #hdfs commands namenode|secondarynamenode|datanode|dfs|dfsadmin|fsck|balancer|fetchdt|oiv|dfsgroups) echo "DEPRECATED: Use of this script to execute hdfs command is deprecated." 1>&2