X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/97bb07673de62fe9bdb5fe8ae0a9c6dbc8d8c2d8..e8dd6d95b4ab40e6f95b0faa51752599e27f6baf:/sdk/cli/bin/arv-tag diff --git a/sdk/cli/bin/arv-tag b/sdk/cli/bin/arv-tag index 4ee6770f77..e400dab7da 100755 --- a/sdk/cli/bin/arv-tag +++ b/sdk/cli/bin/arv-tag @@ -5,13 +5,17 @@ # arv tag remove tag1 [tag2 ...] --object obj_uuid1 [--object obj_uuid2 ...] # arv tag remove tag1 [tag2 ...] --all -def usage - abort "Usage:\n" + - "arv tag add tag1 [tag2 ...] --objects object_uuid1 [object_uuid2...]\n" + - "arv tag remove tag1 [tag2 ...] --objects object_uuid1 [object_uuid2...]\n" + +def usage_string + return "\nUsage:\n" + + "arv tag add tag1 [tag2 ...] --object object_uuid1 [object_uuid2...]\n" + + "arv tag remove tag1 [tag2 ...] --object object_uuid1 [object_uuid2...]\n" + "arv tag remove --all\n" end +def usage + abort usage_string +end + def api_call(method, parameters:{}, request_body:{}) request_body[:api_token] = ENV['ARVADOS_API_TOKEN'] result = $client.execute(:api_method => method, @@ -147,7 +151,8 @@ class Google::APIClient end global_opts = Trollop::options do - banner "arvados cli client" + banner usage_string + banner "" opt :dry_run, "Don't actually do anything", :short => "-n" opt :verbose, "Print some things on stderr", :short => "-v" opt :uuid, "Return the UUIDs of the objects in the response, one per line (default)", :short => nil