Permalink
Browse files

better verbosity control

  • Loading branch information...
1 parent 2a2ae26 commit d88d8c223146a00d3822c91fd41cda6efdd1855c @rn-ci rn-ci committed Jan 2, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 swank-cli/bin/swank-cli.rb
@@ -21,7 +21,7 @@ def after_init
send_command %q|(swank:connection-info)|
send_command %q|(swank:create-repl nil)|
# $stdin.fcntl(Fcntl::F_SETFL,Fcntl::O_NONBLOCK)
- await_output true
+ await_output !@verbose
end
def command_line_arguments
@@ -105,7 +105,10 @@ def await_output only_if_verbose=false
while await_output
sleep 0.5
output = read_any
- only_if_verbose or print "#{output}\r\n"
+ if !output.nil? && (!only_if_verbose || !output.include?("(:indentation-update"))
+ print "#{output}\r\n"
+ end
+ #only_if_verbose or print "#{output}\r\n"
await_output = !output.nil?
end
end

0 comments on commit d88d8c2

Please sign in to comment.