Skip to content

Commit

Permalink
add option --quiet to enable quiet mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pmq20 committed Aug 2, 2017
1 parent ff2feff commit 4ca7c1f
Show file tree
Hide file tree
Showing 4 changed files with 214 additions and 206 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -20,6 +20,7 @@
- https://github.com/pmq20/ruby-compiler/issues/11
- https://github.com/pmq20/ruby-compiler/issues/12
- add `--gem` and `--gem-version` to download and compile a gem
- add option --quiet to enable quiet mode

## v0.3.0

Expand Down
6 changes: 5 additions & 1 deletion bin/rubyc
Expand Up @@ -113,12 +113,16 @@ OptionParser.new do |opts|
options[:debug] = true
end

opts.on("--quiet", "Enable quiet mode") do
options[:quiet] = true
end

opts.on("-v", "--version", "Prints the version of rubyc and exit") do
puts ::Compiler::VERSION
exit 0
end

opts.on("--ruby-version", "Prints the version of the Ruby runtime and exit") do
opts.on('-V', "--ruby-version", "Prints the version of the Ruby runtime and exit") do
puts ::Compiler.ruby_version
exit 0
end
Expand Down

0 comments on commit 4ca7c1f

Please sign in to comment.