bin/onering in onering-client-0.0.73 vs bin/onering in onering-client-0.0.74
- old
+ new
@@ -1,29 +1,30 @@
-#!/usr/bin/env ruby -W0
+#!/usr/bin/env ruby
require 'trollop'
require 'onering'
require 'hashlib'
require 'rainbow'
require 'pp'
plugins = Onering::CLI.submodules.collect{|i| i.name.split('::').last.downcase }
global = Trollop::options do
banner <<-EOS
-onering command line client utility
+onering command line client utility - version #{Onering::CLI::VERSION}
Usage:
onering [global] [plugin] [subcommand] [options]
where [global] options are:
EOS
- opt :url, "The URL of the Onering server to connect to", :short => '-s', :type => :string
- opt :path, "The base path to prepend to all requests (default: /api)", :type => :string
- opt :param, "Additional query string parameters to include with the request in the format FIELD=VALUE. Can be specified multiple times.", :short => '-p', :type => :string, :multi => true
- opt :format, "The output format for return values (i.e.: json, yaml, text)", :default => 'text', :short => '-t', :type => :string
- opt :sslkey, "Location of the SSL client key to use for authentication", :short => '-c', :type => :string
- opt :apikey, "The API token to use for authentication", :short => '-k', :type => :string
- opt :quiet, "Suppress standard output", :short => '-q'
+ opt :url, "The URL of the Onering server to connect to", :short => '-s', :type => :string
+ opt :path, "The base path to prepend to all requests (default: /api)", :type => :string
+ opt :source, "Specify the source IP address to use (i.e. which network interface the request should originate from)", :short => '-I', :type => :string
+ opt :param, "Additional query string parameters to include with the request in the format FIELD=VALUE. Can be specified multiple times.", :short => '-p', :type => :string, :multi => true
+ opt :format, "The output format for return values (i.e.: json, yaml, text)", :default => 'text', :short => '-t', :type => :string
+ opt :sslkey, "Location of the SSL client key to use for authentication", :short => '-c', :type => :string
+ opt :apikey, "The API token to use for authentication", :short => '-k', :type => :string
+ opt :quiet, "Suppress standard output", :short => '-q'
stop_on plugins
end
\ No newline at end of file