From 2a65eb121e23243fcb642d28b3f74241536485d8 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 --- .../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 170812b624..d98de56587 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 @@ private void parseGeneralOptions(Options opts, String[] args) * @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(); } }