projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '15823-dispatchcloud-api-docs'
[arvados.git]
/
sdk
/
cli
/
bin
/
arv-tag
diff --git
a/sdk/cli/bin/arv-tag
b/sdk/cli/bin/arv-tag
index b1783bccf3f277cd705b5012b382182cb3e6b3ad..f709020fc75e91a3449adceabfebd31e02dca13d 100755
(executable)
--- a/
sdk/cli/bin/arv-tag
+++ b/
sdk/cli/bin/arv-tag
@@
-113,11
+113,11
@@
begin
require 'json'
require 'pp'
require 'oj'
require 'json'
require 'pp'
require 'oj'
- require '
trollop
'
+ require '
optimist
'
rescue LoadError
abort <<-EOS
#{$0}: fatal: some runtime dependencies are missing.
rescue LoadError
abort <<-EOS
#{$0}: fatal: some runtime dependencies are missing.
-Try: gem install pp google-api-client json
trollop
+Try: gem install pp google-api-client json
optimist
EOS
end
EOS
end
@@
-156,7
+156,7
@@
class Google::APIClient
end
end
end
end
-global_opts =
Trollop
::options do
+global_opts =
Optimist
::options do
banner usage_string
banner ""
opt :dry_run, "Don't actually do anything", :short => "-n"
banner usage_string
banner ""
opt :dry_run, "Don't actually do anything", :short => "-n"
@@
-169,7
+169,7
@@
global_opts = Trollop::options do
stop_on ['add', 'remove']
end
stop_on ['add', 'remove']
end
-p =
Trollop
::Parser.new do
+p =
Optimist
::Parser.new do
opt(:all,
"Remove this tag from all objects under your ownership. Only valid with `tag remove'.",
:short => :none)
opt(:all,
"Remove this tag from all objects under your ownership. Only valid with `tag remove'.",
:short => :none)
@@
-180,7
+180,7
@@
p = Trollop::Parser.new do
:short => :o)
end
:short => :o)
end
-$options =
Trollop
::with_standard_exception_handling p do
+$options =
Optimist
::with_standard_exception_handling p do
p.parse ARGV
end
p.parse ARGV
end