Point "arv keep get/put" to arv-get/put and unsupport "arv get/put"
authorTom Clegg <tom@clinicalfuture.com>
Tue, 10 Dec 2013 20:08:04 +0000 (12:08 -0800)
committerTom Clegg <tom@clinicalfuture.com>
Tue, 10 Dec 2013 20:08:04 +0000 (12:08 -0800)
style.

refs #1646

sdk/cli/bin/arv

index 511359e81a78ae92de3fd1ce49aaea8f7c215ae4..e289a521e8b6f28b5f98e6934da2c0b609fc766f 100755 (executable)
@@ -11,14 +11,14 @@ if RUBY_VERSION < '1.9.3' then
 end
 
 case ARGV[0]
-when 'get', 'put'
-  cmd = 'arv-' + ARGV.shift
-  exec `which #{cmd}`.strip, *ARGV
-  abort
 when 'keep'
   ARGV.shift
   @sub = ARGV.shift
-  if ['ls', 'get', 'put', 'less', 'check'].index @sub then
+  if ['get', 'put'].index @sub then
+    # Native Arvados
+    exec `which arv-#{@sub}`.strip, *ARGV
+  elsif ['ls', 'less', 'check'].index @sub then
+    # wh* shims
     exec `which wh#{@sub}`.strip, *ARGV
   else
     puts "Usage: \n" +