lib/mysql_backup.rb in mysql_backups-1.1.2 vs lib/mysql_backup.rb in mysql_backups-1.1.4
- old
+ new
@@ -13,9 +13,11 @@
end
Dir.mkdir tmp_dir if !File.exist? tmp_dir
@seed = (rand() * 10000).round.to_s
+ Trollop::educate unless opts[:config]
+
begin
config_path = opts[:config] || 'mysql-backup.conf'
@config = BackupConfig.load_from config_path
rescue => e
puts "Error: Could not load config file at '#{config_path}' - #{e.message}"