diff options
| author | Paul Buetow <paul@buetow.org> | 2025-02-19 14:58:47 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-02-19 14:58:47 +0200 |
| commit | 1f085e83f018048931079e9bf0a564b461fd713c (patch) | |
| tree | 21dc2f3abe45dd34058c07f102da56fcc7eec351 /lib/options.rb | |
| parent | 79c1e080d47954cfd90e338685f30f1481087922 (diff) | |
fix
Diffstat (limited to 'lib/options.rb')
| -rw-r--r-- | lib/options.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/options.rb b/lib/options.rb index ee30295..401d135 100644 --- a/lib/options.rb +++ b/lib/options.rb @@ -3,12 +3,13 @@ require 'optparse' module RCM # Command line options module Options - @@options = { debug: false } + @@options = { debug: false, dry: false } if (after_double_dash = ARGV.slice_before('--').to_a.last&.drop(1)) OptionParser.new do |opts| opts.banner = 'Usage: rake [task] -- [options]' opts.on('-v', '--[no-]debug', 'debug output') { |v| @@options[:debug] = v } + opts.on('-d', '--dry', 'dry mode') { |v| @@options[:dry] = v } end.parse!(after_double_dash) end |
