I checked it out and here's the diff to put it back in, compiled and it works fine so far.
Check option usage message, I think it needs a tweak.
Index: java/src/com/google/template/soy/SoyToJsSrcCompiler.java
===================================================================
--- java/src/com/google/template/soy/SoyToJsSrcCompiler.java (revision 23)
+++ java/src/com/google/template/soy/SoyToJsSrcCompiler.java (working copy)
@@ -84,6 +84,13 @@
handler = MainClassUtils.BooleanOptionHandler.class)
private boolean shouldGenerateJsdoc = false;
+ @Option(name = "--shouldGenerateGoogMsgDefs",
+ usage = "Set this flag if you want goog.getMsg definitions to be generated for all msg" +
+ "blocks.",
+
+ handler = MainClassUtils.BooleanOptionHandler.class)
+ private boolean shouldGenerateGoogMsgDefs = true;
+
@Option(name = "--shouldProvideRequireSoyNamespaces",
usage = "When this option is used, each generated JS file will contain (a) one single" +
" goog.provide statement for the corresponding Soy file's namespace and" +
@@ -194,6 +201,7 @@
jsSrcOptions.setIsUsingIjData(isUsingIjData);
jsSrcOptions.setCodeStyle(codeStyle);
jsSrcOptions.setShouldGenerateJsdoc(shouldGenerateJsdoc);
+ jsSrcOptions.setShouldGenerateGoogMsgDefs(shouldGenerateGoogMsgDefs);
jsSrcOptions.setShouldProvideRequireSoyNamespaces(shouldProvideRequireSoyNamespaces);
jsSrcOptions.setShouldDeclareTopLevelNamespaces(shouldDeclareTopLevelNamespaces);
jsSrcOptions.setBidiGlobalDir(bidiGlobalDir);