lib/ruboty/command_builder.rb in ruboty-1.1.8 vs lib/ruboty/command_builder.rb in ruboty-1.1.9

- old
+ new

@@ -28,10 +28,14 @@ def options Slop.parse(arguments) do |options| options.on("--dotenv", "Load .env before running.") options.on("-g", "--generate", "Generate a new chatterbot with ./ruboty/ directory if specified.") options.on("-h", "--help", "Display this help message.") - options.string("-l", "--load", "Load a ruby file before running.") + if Slop::VERSION >= "4.0.0" + options.string("-l", "--load", "Load a ruby file before running.") + else + options.on("-l", "--load=", "Load a ruby file before running.") + end end end memoize :options end end