bin/magento_scrape in magento_remote-0.1.6 vs bin/magento_scrape in magento_remote-0.2.0
- old
+ new
@@ -1,15 +1,17 @@
#!/usr/bin/env ruby
require 'optparse'
require 'terminal-table'
require 'magento_remote'
+require 'bin_helper'
# Sweet, sweet options.
options = {}
+program_name = File.basename __FILE__
optparse = OptionParser.new do |opts|
- opts.banner = "Usage: magento_scrape [OPTIONS]\n Find product(s) in shop."
+ opts.banner = "Usage: #{program_name} [OPTIONS]\n Find product(s) in shop."
opts.separator ""
opts.separator "Magento shop options"
opts.on('-b', '--base-uri URI', 'base URI of shop.') do |b|