#!/usr/bin/env ruby require_relative '../lib/chromedriver_update' arg = ARGV[0] if %w[version -v --version].include?(arg) puts "#{ChromedriverUpdate::VERSION}" elsif arg.nil? || arg == '' ChromedriverUpdate.auto_update_chromedriver else puts <<-TEXT chromedriver_update #{ChromedriverUpdate::VERSION} https://github.com/magynhard/chromedriver_update chromedriver_update -h --help # show this info chromedriver_update -v --version # show the libraries current version chromedriver_update # automatically update the current chromedriver version fitting to the currently installed chrome TEXT end