@@ -138,13 +138,13 @@ public Commander(String[] args) {
138138 embedJava = false ;
139139
140140 } else if (arg .startsWith (platformArg )) {
141- complainAndQuit ("The --platform option has been removed from Processing 2.1." , false );
142- // String platformStr = arg.substring(platformArg.length());
143- // platform = Base.getPlatformIndex(platformStr);
144- // if (platform == -1) {
145- // complainAndQuit(platformStr + " should instead be " +
146- // "'windows', 'macosx', or 'linux'.", true);
147- // }
141+ // complainAndQuit("The --platform option has been removed from Processing 2.1.", false);
142+ String platformStr = arg .substring (platformArg .length ());
143+ platform = Base .getPlatformIndex (platformStr );
144+ if (platform == -1 ) {
145+ complainAndQuit (platformStr + " should instead be " +
146+ "'windows', 'macosx', or 'linux'." , true );
147+ }
148148
149149 } else if (arg .startsWith (bitsArg )) {
150150 complainAndQuit ("The --bits option has been removed from Processing 2.1." , false );
@@ -373,8 +373,8 @@ static void printCommandLine(PrintStream out) {
373373 out .println ();
374374 out .println ("--export Export an application." );
375375 out .println ("--no-java Do not embed Java. Use at your own risk!" );
376- // out.println("--platform Specify the platform (export to application only).");
377- // out.println(" Should be one of 'windows', 'macosx', or 'linux'.");
376+ out .println ("--platform Specify the platform (export to application only)." );
377+ out .println (" Should be one of 'windows', 'macosx', or 'linux'." );
378378// out.println("--bits Must be specified if libraries are used that are");
379379// out.println(" 32- or 64-bit specific such as the OpenGL library.");
380380// out.println(" Otherwise specify 0 or leave it out.");
0 commit comments