screengrab/lib/screengrab/commands_generator.rb in fastlane-2.18.0.beta.20170220010017 vs screengrab/lib/screengrab/commands_generator.rb in fastlane-2.18.0.beta.20170221010026
- old
+ new
@@ -22,14 +22,14 @@
global_option('--verbose', 'Shows a more verbose output') { FastlaneCore::Globals.verbose = true }
always_trace!
- FastlaneCore::CommanderGenerator.new.generate(Screengrab::Options.available_options)
-
command :run do |c|
c.syntax = 'fastlane screengrab'
- c.description = 'Take new screenshots based on the screengrabfile.'
+ c.description = 'Take new screenshots based on the Screengrabfile.'
+
+ FastlaneCore::CommanderGenerator.new.generate(Screengrab::Options.available_options, command: c)
c.action do |args, options|
o = options.__hash__.dup
o.delete(:verbose)
Screengrab.config = FastlaneCore::Configuration.create(Screengrab::Options.available_options, o)