lib/filepreviews/cli.rb in filepreviews-1.0.0 vs lib/filepreviews/cli.rb in filepreviews-1.1.0
- old
+ new
@@ -22,9 +22,14 @@
def options(opts)
opts.version = Filepreviews::VERSION
opts.banner = BANNER
opts.set_program_name 'Filepreviews.io'
+ opts.on('-k', '--api_key [key]', String,
+ 'use API key from Filepreviews.io') do |key|
+ Filepreviews.api_key = key
+ end
+
opts.on('-m', '--metadata', 'load metadata response') do
@metadata = true
end
opts.on_tail('-v', '--version', 'display the version of Filepreviews') do