@@ -142,13 +142,13 @@ public Commander(String[] args) {
142142 embedJava = false ;
143143
144144 } else if (arg .startsWith (platformArg )) {
145- complainAndQuit ("The --platform option has been removed from Processing 2.1." , false );
146- // String platformStr = arg.substring(platformArg.length());
147- // platform = Base.getPlatformIndex(platformStr);
148- // if (platform == -1) {
149- // complainAndQuit(platformStr + " should instead be " +
150- // "'windows', 'macosx', or 'linux'.", true);
151- // }
145+ // complainAndQuit("The --platform option has been removed from Processing 2.1.", false);
146+ String platformStr = arg .substring (platformArg .length ());
147+ platform = Base .getPlatformIndex (platformStr );
148+ if (platform == -1 ) {
149+ complainAndQuit (platformStr + " should instead be " +
150+ "'windows', 'macosx', or 'linux'." , true );
151+ }
152152
153153 } else if (arg .startsWith (bitsArg )) {
154154 complainAndQuit ("The --bits option has been removed from Processing 2.1." , false );
@@ -377,8 +377,8 @@ static void printCommandLine(PrintStream out) {
377377 out .println ();
378378 out .println ("--export Export an application." );
379379 out .println ("--no-java Do not embed Java. Use at your own risk!" );
380- // out.println("--platform Specify the platform (export to application only).");
381- // out.println(" Should be one of 'windows', 'macosx', or 'linux'.");
380+ out .println ("--platform Specify the platform (export to application only)." );
381+ out .println (" Should be one of 'windows', 'macosx', or 'linux'." );
382382// out.println("--bits Must be specified if libraries are used that are");
383383// out.println(" 32- or 64-bit specific such as the OpenGL library.");
384384// out.println(" Otherwise specify 0 or leave it out.");
0 commit comments