diff --git a/src/main/java/com/google/devtools/build/lib/runtime/commands/CleanCommand.java b/src/main/java/com/google/devtools/build/lib/runtime/commands/CleanCommand.java index 305f3d5c227ee9..6d9c5965d15576 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/commands/CleanCommand.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/commands/CleanCommand.java @@ -131,15 +131,7 @@ public CleanCommand(OS os) { @Override public BlazeCommandResult exec(CommandEnvironment env, OptionsParsingResult options) { // Assert that there is no residue and warn about Starlark options. - List starlarkOptions = options.getSkippedArgs(); List residue = options.getResidue(); - if (!starlarkOptions.isEmpty()) { - env.getReporter() - .handle( - Event.warn( - "Blaze clean does not support starlark options. Ignoring options: " - + starlarkOptions)); - } if (!residue.isEmpty()) { String message = "Unrecognized arguments: " + Joiner.on(' ').join(residue); env.getReporter().handle(Event.error(message)); diff --git a/src/main/java/com/google/devtools/build/lib/runtime/commands/InfoCommand.java b/src/main/java/com/google/devtools/build/lib/runtime/commands/InfoCommand.java index 3a1ff782e05c0b..11e465ed23b234 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/commands/InfoCommand.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/commands/InfoCommand.java @@ -189,16 +189,7 @@ public BlazeCommandResult exec( } } - List starlarkOptions = optionsParsingResult.getSkippedArgs(); List residue = optionsParsingResult.getResidue(); - if (!starlarkOptions.isEmpty()) { - env.getReporter() - .handle( - Event.warn( - "info command does not support starlark options. Ignoring options: " - + starlarkOptions)); - } - env.getEventBus().post(new NoBuildEvent()); if (!residue.isEmpty()) { ImmutableSet.Builder unknownKeysBuilder = ImmutableSet.builder();