bin/snapshot in snapshot-0.3.1 vs bin/snapshot in snapshot-0.3.2

- old
+ new

@@ -5,10 +5,11 @@ require 'snapshot' require 'commander/import' require 'snapshot/update_checker' require 'snapshot/dependency_checker' require 'snapshot/snapfile_creator' +require 'snapshot/snapshot_config' HighLine.track_eof = false # Commander @@ -27,10 +28,13 @@ default_command :run command :run do |c| c.syntax = 'snapshot' c.description = 'Run the script, to take all the screenshots' + c.option '--snapfile STRING', String, 'Custom path for your Snapfile' + c.action do |args, options| + Snapshot::SnapshotConfig.shared_instance(options.snapfile) if options.snapfile # to set the custom Snapfile path if given Snapshot::Runner.new.work end end command :init do |c| \ No newline at end of file