screengrab/lib/screengrab/commands_generator.rb in fastlane-2.69.0.beta.20171212010004 vs screengrab/lib/screengrab/commands_generator.rb in fastlane-2.69.0

- old
+ new

@@ -47,10 +47,11 @@ c.description = "Creates a new Screengrabfile in the current directory" c.action do |args, options| require 'screengrab/setup' path = Screengrab::Helper.fastlane_enabled? ? FastlaneCore::FastlaneFolder.path : '.' - Screengrab::Setup.create(path) + is_swift_fastfile = args.include?("swift") + Screengrab::Setup.create(path, is_swift_fastfile: is_swift_fastfile) end end default_command :run