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'
|
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.
|
||||||
|
@ -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`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user