@@ -740,7 +740,8 @@ def help
740
740
* 'ruby' which uses the current Ruby executable in the PATH
741
741
Default value is --use jvm, therefore all commands run on truffleruby-jvm by default.
742
742
The default can be changed with `export RUBY_BIN=RUBY_SELECTOR`
743
- --silent Does not print the command and which Ruby is used
743
+ --silent|-q Does not print the command and which Ruby is used
744
+ --verbose|-v Print more details and commands
744
745
--jdk Specifies which version of the JDK should be used: 11 (default) or 17
745
746
746
747
jt build [graalvm|parser|options|core-symbols] ... by default it builds graalvm
@@ -2104,7 +2105,7 @@ def graph(*args)
2104
2105
loop do # for --watch
2105
2106
compiled = false
2106
2107
command = [ ruby_launcher , *vm_args , test_file ]
2107
- # STDERR.puts bold "$ #{printable_cmd(command)}"
2108
+ STDERR . puts bold "$ #{ printable_cmd ( command ) } " if @verbose
2108
2109
IO . popen ( command , err : [ :child , :out ] ) do |pipe |
2109
2110
pipe . each_line do |line |
2110
2111
puts line
@@ -2962,6 +2963,7 @@ def process_pre_args(args)
2962
2963
needs_build = false
2963
2964
needs_rebuild = false
2964
2965
@silent = false
2966
+ @verbose = false
2965
2967
@jdk_version = Integer ( ENV [ 'JT_JDK' ] || 11 )
2966
2968
2967
2969
until args . empty?
@@ -2975,6 +2977,8 @@ def process_pre_args(args)
2975
2977
@ruby_name = args . shift
2976
2978
when '-q' , '--silent'
2977
2979
@silent = true
2980
+ when '-v' , '--verbose'
2981
+ @verbose = true
2978
2982
when '--jdk'
2979
2983
@jdk_version = Integer ( args . shift )
2980
2984
when '-h' , '-help' , '--help'
0 commit comments