diff --git a/lib/retryit.rb b/lib/retryit.rb index 468b908..bd079fe 100644 --- a/lib/retryit.rb +++ b/lib/retryit.rb @@ -54,7 +54,7 @@ class RetryIt def run(args) - if (["-h", "-?", "--help"].include? args[0]) + if (args.size < 1 || ["-h", "-?", "--help"].include?(args[0])) load_options(args) end diff --git a/retryit.gemspec b/retryit.gemspec index 1e1a742..56bd600 100644 --- a/retryit.gemspec +++ b/retryit.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |s| s.name = 'retryit' - s.version = '0.1.0' + s.version = '0.1.1' s.summary = "retry any command line" s.description = "General purpose retry cli program for anything" s.authors = ["Neville Kadwa"]