Skip to content

Commit

Permalink
Deprecate --dryrun options in favor of --dry-run
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Mar 15, 2024
1 parent eceb36c commit 8237275
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tool/downloader.rb
Expand Up @@ -424,8 +424,8 @@ def self.with_retry(max_times, &block)
when '-u', '--update', '--if-modified'
## -u, --update, --if-modified Download newer files only.
since = true
when '-n', '--dryrun'
## -n, --dryrun Do not download actually.
when '-n', '--dry-run', '--dryrun'
## -n, --dry-run Do not download actually.
options[:dryrun] = true
when '--cache-dir'
## --cache-dir DIRECTORY Cache downloaded files in the directory.
Expand Down
4 changes: 2 additions & 2 deletions tool/outdate-bundled-gems.rb
Expand Up @@ -9,8 +9,8 @@
when '--'
ARGV.shift
break
when '-n', '--dryrun'
## -n, --dryrun Don't remove
when '-n', '--dry-run', '--dryrun'
## -n, --dry-run Don't remove
fu = FileUtils::DryRun
when /\A--make=/
# just to run when `make -n`
Expand Down

0 comments on commit 8237275

Please sign in to comment.