diff --git a/src/main/java/com/google/devtools/build/lib/runtime/commands/CanonicalizeCommand.java b/src/main/java/com/google/devtools/build/lib/runtime/commands/CanonicalizeCommand.java index cb4ec6c30ae3f0..7ccbb2a9313c80 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/commands/CanonicalizeCommand.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/commands/CanonicalizeCommand.java @@ -50,8 +50,8 @@ @Command( name = "canonicalize-flags", options = {CanonicalizeCommand.Options.class, PackageOptions.class}, - // inherits from query to get proper package loading options. - inherits = {QueryCommand.class}, + // inherits from build to get proper package loading options and rc flag aliases. + inherits = {BuildCommand.class}, allowResidue = true, mustRunInWorkspace = false, shortDescription = "Canonicalizes a list of %{product} options.",