comparison graal/com.oracle.truffle.ruby.shell/src/com/oracle/truffle/ruby/shell/CommandLineParser.java @ 13645:497fada09efb

Ruby: remove versioning.
author Chris Seaton <chris.seaton@oracle.com>
date Wed, 15 Jan 2014 19:27:27 +0000
parents 0fbee3eb71f0
children 50c11b9a7fdf
comparison
equal deleted inserted replaced
13640:bfe7a8c8c3c6 13645:497fada09efb
205 n++; 205 n++;
206 break; 206 break;
207 case "--stdlib": 207 case "--stdlib":
208 configurationBuilder.setStandardLibrary(normalizedArgs.get(n + 1)); 208 configurationBuilder.setStandardLibrary(normalizedArgs.get(n + 1));
209 n++; 209 n++;
210 break;
211 case "--1.8":
212 configurationBuilder.setRubyVersion(RubyVersion.RUBY_18);
213 break;
214 case "--1.9":
215 configurationBuilder.setRubyVersion(RubyVersion.RUBY_19);
216 break;
217 case "--2.0":
218 configurationBuilder.setRubyVersion(RubyVersion.RUBY_20);
219 break; 210 break;
220 case "--full-object-space": 211 case "--full-object-space":
221 configurationBuilder.setFullObjectSpace(true); 212 configurationBuilder.setFullObjectSpace(true);
222 break; 213 break;
223 case "--no-jline": 214 case "--no-jline":
335 out.println(" --copyright print the copyright"); 326 out.println(" --copyright print the copyright");
336 out.println(" --version print the version"); 327 out.println(" --version print the version");
337 out.println("Extra rubytruffle switches:"); 328 out.println("Extra rubytruffle switches:");
338 out.println(" --home dir set the location of the Ruby Truffle installation (default . or $RUBY_TRUFFLE_HOME)"); 329 out.println(" --home dir set the location of the Ruby Truffle installation (default . or $RUBY_TRUFFLE_HOME)");
339 out.println(" --stdlib dir use a directory for the Ruby standard library"); 330 out.println(" --stdlib dir use a directory for the Ruby standard library");
340 out.println(" --1.8 1.8 compatibility mode");
341 out.println(" --1.9 1.9 compatibility mode (default)");
342 out.println(" --2.0 2.0 compatibility mode");
343 out.println(" --full-object-space enable full ObjectSpace#each_object and similar"); 331 out.println(" --full-object-space enable full ObjectSpace#each_object and similar");
344 out.println(" --no-debug disable debugging"); 332 out.println(" --no-debug disable debugging");
345 out.println(" --no-trace disable tracing"); 333 out.println(" --no-trace disable tracing");
346 out.println("Debugging rubytruffle switches:"); 334 out.println("Debugging rubytruffle switches:");
347 out.println(" --no-cache-constant-lookup don't cache constant lookups"); 335 out.println(" --no-cache-constant-lookup don't cache constant lookups");