summaryrefslogtreecommitdiff
path: root/tool/downloader.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-09-17 22:51:30 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-09-19 01:09:47 +0900
commitcc533cb607d9d96356c12b880d0871a3b24f35e9 (patch)
treef00367fbd33ff33c94feba4944018b57c72c68c2 /tool/downloader.rb
parenta0b0991eed5b202b61323496560d8a803fddab02 (diff)
downloadruby-cc533cb607d9d96356c12b880d0871a3b24f35e9.tar.gz
Downloader: Define long option aliases
Diffstat (limited to 'tool/downloader.rb')
-rw-r--r--tool/downloader.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb
index f09d44851e..3020322a98 100644
--- a/tool/downloader.rb
+++ b/tool/downloader.rb
@@ -395,18 +395,20 @@ if $0 == __FILE__
end
case ARGV[0]
- when '-d'
+ when '-d', '--destdir'
destdir = ARGV[1]
ARGV.shift
- when '-p'
+ when '-p', '--prefix'
# strip directory names from the name to download, and add the
# prefix instead.
prefix = ARGV[1]
ARGV.shift
- when '-e'
+ when '-e', '--exist', '--non-existent-only'
since = nil
- when '-a'
+ when '-a', '--always'
since = false
+ when '-u', '--update', '--if-modified'
+ since = true
when '-n', '--dryrun'
options[:dryrun] = true
when '--cache-dir'