Skip to content

Commit 8237275

Browse files
committed
Deprecate --dryrun options in favor of --dry-run
1 parent eceb36c commit 8237275

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tool/downloader.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,8 @@ def self.with_retry(max_times, &block)
424424
when '-u', '--update', '--if-modified'
425425
## -u, --update, --if-modified Download newer files only.
426426
since = true
427-
when '-n', '--dryrun'
428-
## -n, --dryrun Do not download actually.
427+
when '-n', '--dry-run', '--dryrun'
428+
## -n, --dry-run Do not download actually.
429429
options[:dryrun] = true
430430
when '--cache-dir'
431431
## --cache-dir DIRECTORY Cache downloaded files in the directory.

tool/outdate-bundled-gems.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
when '--'
1010
ARGV.shift
1111
break
12-
when '-n', '--dryrun'
13-
## -n, --dryrun Don't remove
12+
when '-n', '--dry-run', '--dryrun'
13+
## -n, --dry-run Don't remove
1414
fu = FileUtils::DryRun
1515
when /\A--make=/
1616
# just to run when `make -n`

0 commit comments

Comments
 (0)