lib/danger/commands/local.rb in danger-4.2.2 vs lib/danger/commands/local.rb in danger-4.3.0

- old
+ new

@@ -18,11 +18,17 @@ ["--pry", "Drop into a Pry shell after evaluating the Dangerfile."] ] end def initialize(argv) + show_help = true if argv.arguments == ["-h"] + @pr_num = argv.option("use-merged-pr") @clear_http_cache = argv.flag?("clear-http-cache", false) + + # Currently CLAide doesn't support short option like -h https://github.com/CocoaPods/CLAide/pull/60 + # when user pass in -h, mimic the behavior of passing in --help. + argv = CLAide::ARGV.new ["--help"] if show_help super if argv.flag?("pry", false) @dangerfile_path = PrySetup.new(cork).setup_pry(@dangerfile_path)