Skip to content

Commit

Permalink
HDDS-11945. Improve startup message for ozone repair commands
Browse files Browse the repository at this point in the history
  • Loading branch information
sarvekshayr committed Dec 18, 2024
1 parent 1f29e05 commit d02a5ec
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* Ozone Repair Command line tool.
*/
@CommandLine.Command(name = "ozone repair",
description = "Operational tool to repair Ozone",
description = "Repair is an advanced operation and the nodes being repaired should be stopped while it is running",
versionProvider = HddsVersionProvider.class,
mixinStandardHelpOptions = true)
public class OzoneRepair extends GenericCli implements ExtensibleParentCommand {
Expand All @@ -46,6 +46,10 @@ public static void main(String[] argv) {

@Override
public int execute(String[] argv) {
if (argv.length == 0 || argv[0].equals("--help") || argv[0].equals("-h")) {
return super.execute(argv);
}

String currentUser = getSystemUserName();
if (!("y".equalsIgnoreCase(getConsoleReadLineWithFormat(currentUser)))) {
System.out.println("Aborting command.");
Expand Down

0 comments on commit d02a5ec

Please sign in to comment.