Deprecate --dryrun options in favor of --dry-run

This commit is contained in:
Nobuyoshi Nakada 2024-03-15 14:12:08 +09:00
parent eceb36c7b9
commit 823727538e
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
2 changed files with 4 additions and 4 deletions

View File

@ -424,8 +424,8 @@ if $0 == __FILE__
when '-u', '--update', '--if-modified' when '-u', '--update', '--if-modified'
## -u, --update, --if-modified Download newer files only. ## -u, --update, --if-modified Download newer files only.
since = true since = true
when '-n', '--dryrun' when '-n', '--dry-run', '--dryrun'
## -n, --dryrun Do not download actually. ## -n, --dry-run Do not download actually.
options[:dryrun] = true options[:dryrun] = true
when '--cache-dir' when '--cache-dir'
## --cache-dir DIRECTORY Cache downloaded files in the directory. ## --cache-dir DIRECTORY Cache downloaded files in the directory.

View File

@ -9,8 +9,8 @@ until ARGV.empty?
when '--' when '--'
ARGV.shift ARGV.shift
break break
when '-n', '--dryrun' when '-n', '--dry-run', '--dryrun'
## -n, --dryrun Don't remove ## -n, --dry-run Don't remove
fu = FileUtils::DryRun fu = FileUtils::DryRun
when /\A--make=/ when /\A--make=/
# just to run when `make -n` # just to run when `make -n`