bin/snapshot in snapshot-0.3.2 vs bin/snapshot in snapshot-0.3.3
- old
+ new
@@ -29,20 +29,21 @@
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.option '--noclean', 'Skips the clean process when running snapshot.'
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
+ Snapshot::Runner.new.work(clean: !options.noclean)
end
end
command :init do |c|
c.syntax = 'snapshot init'
c.description = "Creates a new Snapfile in the current directory"
c.action do |args, options|
Snapshot::SnapfileCreator.create('.')
end
-end
\ No newline at end of file
+end