lib/ruboty/command_builder.rb in ruboty-1.2.4 vs lib/ruboty/command_builder.rb in ruboty-1.3.0

- old
+ new

@@ -25,16 +25,19 @@ end end def options Slop.parse(arguments) do |options| + options.on("--daemon", "Run as a daemon.") 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.") if Slop::VERSION >= "4.0.0" options.string("-l", "--load", "Load a ruby file before running.") + options.string("--pid", "Write the PID to a file.") else options.on("-l", "--load=", "Load a ruby file before running.") + options.on("--pid=", "Write the PID to a file.") end end end memoize :options end