Deprecate --dryrun
options in favor of --dry-run
This commit is contained in:
parent
eceb36c7b9
commit
823727538e
@ -424,8 +424,8 @@ if $0 == __FILE__
|
||||
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.
|
||||
|
@ -9,8 +9,8 @@ until ARGV.empty?
|
||||
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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user