diff --git a/java/google/registry/tools/VerifyOteCommand.java b/java/google/registry/tools/VerifyOteCommand.java index 2799ce91f..bf629c142 100644 --- a/java/google/registry/tools/VerifyOteCommand.java +++ b/java/google/registry/tools/VerifyOteCommand.java @@ -48,7 +48,7 @@ final class VerifyOteCommand implements ServerSideCommand { private List mainParameters = new ArrayList<>(); @Parameter( - names = "--check-all", + names = "--check_all", description = "Check the OT&E pass status of all active registrars") private boolean checkAll; @@ -74,7 +74,7 @@ final class VerifyOteCommand implements ServerSideCommand { } checkArgument( mainParameters.isEmpty() == checkAll, - "Must provide at least one registrar name, or supply --check-all with no names."); + "Must provide at least one registrar name, or supply --check_all with no names."); for (String clientId : mainParameters) { // OT&E registrars are created with clientIDs of registrarName-[1-4], but this command is // passed registrarName. So check the existence of the first persisted registrar to see if diff --git a/javatests/google/registry/tools/VerifyOteCommandTest.java b/javatests/google/registry/tools/VerifyOteCommandTest.java index 2d16b3468..62040d6c0 100644 --- a/javatests/google/registry/tools/VerifyOteCommandTest.java +++ b/javatests/google/registry/tools/VerifyOteCommandTest.java @@ -78,6 +78,6 @@ public class VerifyOteCommandTest extends CommandTestCase { assertThrows(IllegalArgumentException.class, () -> runCommand("")); assertThat(thrown) .hasMessageThat() - .contains("Must provide at least one registrar name, or supply --check-all with no names."); + .contains("Must provide at least one registrar name, or supply --check_all with no names."); } }