From 38b1ed18ef1033d27e636348cebe6b65d68178de Mon Sep 17 00:00:00 2001 From: Mingliang Liu Date: Tue, 8 Nov 2016 14:41:58 -0800 Subject: [PATCH] HADOOP-13802. Make generic options help more consistent, and aligned. Contributed by Grant Sohn (cherry picked from commit 2a65eb121e23243fcb642d28b3f74241536485d8) --- .../hadoop/util/GenericOptionsParser.java | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/GenericOptionsParser.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/GenericOptionsParser.java index d887d9600de..fea97285b2a 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/GenericOptionsParser.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/GenericOptionsParser.java @@ -567,21 +567,28 @@ public class GenericOptionsParser { * @param out stream to print the usage message to. */ public static void printGenericCommandUsage(PrintStream out) { - - out.println("Generic options supported are"); - out.println("-conf specify an application configuration file"); - out.println("-D use value for given property"); - out.println("-fs specify a namenode"); - out.println("-jt specify a ResourceManager"); - out.println("-files " + - "specify comma separated files to be copied to the map reduce cluster"); - out.println("-libjars " + - "specify comma separated jar files to include in the classpath."); - out.println("-archives " + - "specify comma separated archives to be unarchived" + - " on the compute machines.\n"); - out.println("The general command line syntax is"); - out.println("command [genericOptions] [commandOptions]\n"); + out.println("Generic options supported are:"); + out.println("-conf " + + "specify an application configuration file"); + out.println("-D " + + "define a value for a given property"); + out.println("-fs " + + "specify a namenode"); + out.println("-jt " + + "specify a ResourceManager"); + out.println("-files " + + "specify a comma-separated list of files to be copied to the map " + + "reduce cluster"); + out.println("-libjars " + + "specify a comma-separated list of jar files to be included in the " + + "classpath"); + out.println("-archives " + + "specify a comma-separated list of archives to be unarchived on the " + + "compute machines"); + out.println(); + out.println("The general command line syntax is:"); + out.println("command [genericOptions] [commandOptions]"); + out.println(); } }