mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Downloader: Define long option aliases
This commit is contained in:
parent
a0b0991eed
commit
cc533cb607
1 changed files with 6 additions and 4 deletions
|
@ -395,18 +395,20 @@ if $0 == __FILE__
|
||||||
end
|
end
|
||||||
|
|
||||||
case ARGV[0]
|
case ARGV[0]
|
||||||
when '-d'
|
when '-d', '--destdir'
|
||||||
destdir = ARGV[1]
|
destdir = ARGV[1]
|
||||||
ARGV.shift
|
ARGV.shift
|
||||||
when '-p'
|
when '-p', '--prefix'
|
||||||
# strip directory names from the name to download, and add the
|
# strip directory names from the name to download, and add the
|
||||||
# prefix instead.
|
# prefix instead.
|
||||||
prefix = ARGV[1]
|
prefix = ARGV[1]
|
||||||
ARGV.shift
|
ARGV.shift
|
||||||
when '-e'
|
when '-e', '--exist', '--non-existent-only'
|
||||||
since = nil
|
since = nil
|
||||||
when '-a'
|
when '-a', '--always'
|
||||||
since = false
|
since = false
|
||||||
|
when '-u', '--update', '--if-modified'
|
||||||
|
since = true
|
||||||
when '-n', '--dryrun'
|
when '-n', '--dryrun'
|
||||||
options[:dryrun] = true
|
options[:dryrun] = true
|
||||||
when '--cache-dir'
|
when '--cache-dir'
|
||||||
|
|
Loading…
Reference in a new issue