ddanielr commented on code in PR #5888:
URL: https://github.com/apache/accumulo/pull/5888#discussion_r2356198602


##########
server/base/src/main/java/org/apache/accumulo/server/util/UpgradeUtil.java:
##########
@@ -63,13 +67,51 @@ public String description() {
     return "utility used to perform various upgrade steps for an Accumulo 
instance";
   }
 
+  private static class UpgradeUsageFormatter extends DefaultUsageFormatter {
+
+    public UpgradeUsageFormatter(JCommander commander) {
+      super(commander);
+    }
+
+    @Override
+    public void appendMainLine(StringBuilder out, boolean hasOptions, boolean 
hasCommands,
+        int indentCount, String indent) {
+      super.appendMainLine(out, hasOptions, hasCommands, indentCount, indent);
+
+      out.append("\n");
+      out.append(indent)
+          .append("  The upgrade command is intended to be used in the 
following way :\n");
+      out.append(indent).append("    1. Stop older version of accumulo\n");
+      out.append(indent)
+          .append("    2. Run 'accumulo upgrade --prepare' using the older 
version of accumulo\n");
+      out.append(indent).append("    3. Setup the newer version of the 
accumulo software\n");
+      out.append(indent)
+          .append("    4. Run 'accumulo upgrade --start' using the newer 
version of accumulo\n");
+      out.append(indent).append(
+          "    5. Start accumulo using the newer version and let the manager 
complete the upgrade\n");
+      out.append("\n");
+    }
+  }
+
+  public static void main(String[] args) {

Review Comment:
   Is this main method needed since this class uses the 
`@AutoService(KeywordExecutable.class)` annotation?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to