Skip to content

Commit

Permalink
[Truffle] Verbosity is false by default, not nil.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Dec 9, 2016
1 parent 59e593a commit 4db07f2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tool/truffle/generate-options.rb
Expand Up @@ -32,7 +32,7 @@
when 'false'
'Verbosity.FALSE'
end
null_default = 'Verbosity.NIL'
null_default = 'Verbosity.FALSE'
when 'integer'
type = 'int'
type_cons = 'IntegerOptionDescription'
Expand Down
2 changes: 1 addition & 1 deletion tool/truffle/options.yml
Expand Up @@ -7,7 +7,7 @@ ARGUMENTS: [arguments, string-array, [], Command line arguments for the Ruby pro
DISPLAYED_FILE_NAME: [displayed_file_name, string, null, Displayed file name]

DEBUG: [debug, boolean, false, Debug]
VERBOSITY: [verbosity, verbosity, nil, Verbosity]
VERBOSITY: [verbosity, verbosity, false, Verbosity]
FROZEN_STRING_LITERALS: [frozen_string_literals, boolean, false, Use frozen string literals]
DISABLE_GEMS: [disable_gems, boolean, false, Disable Gems]

Expand Down
Expand Up @@ -117,7 +117,7 @@ public class Options {
ARGUMENTS = builder.getOrDefault(OptionsCatalog.ARGUMENTS);
DISPLAYED_FILE_NAME = builder.getOrDefault(OptionsCatalog.DISPLAYED_FILE_NAME);
DEBUG = builder.getOrDefault(OptionsCatalog.DEBUG);
VERBOSITY = builder.getOrDefault(OptionsCatalog.VERBOSITY, Verbosity.NIL);
VERBOSITY = builder.getOrDefault(OptionsCatalog.VERBOSITY, Verbosity.FALSE);
FROZEN_STRING_LITERALS = builder.getOrDefault(OptionsCatalog.FROZEN_STRING_LITERALS);
DISABLE_GEMS = builder.getOrDefault(OptionsCatalog.DISABLE_GEMS);
INTERNAL_ENCODING = builder.getOrDefault(OptionsCatalog.INTERNAL_ENCODING);
Expand Down
Expand Up @@ -23,7 +23,7 @@ public class OptionsCatalog {
public static final OptionDescription ARGUMENTS = new StringArrayOptionDescription("arguments", "Command line arguments for the Ruby program", new String[]{});
public static final OptionDescription DISPLAYED_FILE_NAME = new StringOptionDescription("displayed_file_name", "Displayed file name", null);
public static final OptionDescription DEBUG = new BooleanOptionDescription("debug", "Debug", false);
public static final OptionDescription VERBOSITY = new VerbosityOptionDescription("verbosity", "Verbosity", Verbosity.NIL);
public static final OptionDescription VERBOSITY = new VerbosityOptionDescription("verbosity", "Verbosity", Verbosity.FALSE);
public static final OptionDescription FROZEN_STRING_LITERALS = new BooleanOptionDescription("frozen_string_literals", "Use frozen string literals", false);
public static final OptionDescription DISABLE_GEMS = new BooleanOptionDescription("disable_gems", "Disable Gems", false);
public static final OptionDescription INTERNAL_ENCODING = new StringOptionDescription("internal_encoding", "Internal encoding", null);
Expand Down
Expand Up @@ -620,7 +620,7 @@ public static ClassLoader defaultClassLoader() {
private Map<String, String> optionGlobals = new HashMap<String, String>();
private boolean processLineEnds = false;
private boolean split = false;
private Verbosity verbosity = Verbosity.NIL;
private Verbosity verbosity = Verbosity.FALSE;
private boolean debug = false;
private boolean showVersion = false;
private boolean showBytecode = false;
Expand Down

0 comments on commit 4db07f2

Please sign in to comment.