diff --git a/script/boxen b/script/boxen index e856a7a..391212a 100755 --- a/script/boxen +++ b/script/boxen @@ -25,8 +25,8 @@ Dir.chdir Pathname.new(__FILE__).realpath + "../.." # Auto-update code. This is done as early as possible so that changes # to boxen support code or dependencies can be grabbed. - -unless ENV["BOXEN_NO_PULL"] || ARGV.include?("--no-pull") +NO_PULL_ARGS = %w[--no-pull -h -? --help] +unless ENV["BOXEN_NO_PULL"] || NO_PULL_ARGS.any? { |arg| ARGV.include?(arg) } quietly = "> /dev/null 2>&1" if system("which git > /dev/null") && File.directory?(".git") \