lib/pivotal-integration/command/finish.rb in pivotal-integration-1.6.0.1 vs lib/pivotal-integration/command/finish.rb in pivotal-integration-1.6.0.2

- old
+ new

@@ -25,13 +25,13 @@ # * Delete the development branch # * Push changes to remote # # @return [void] def run(*arguments) - no_complete = arguments.delete('--no-complete') - no_delete = arguments.delete('--no-delete') - no_merge = arguments.delete('--no-merge') - pull_request = arguments.delete('--pull-request') || PivotalIntegration::Util::Git.finish_mode == :pull_request + no_complete = @options.fetch(:no_complete, false) + no_delete = @options.fetch(:no_delete, false) + no_merge = @options.fetch(:no_merge, false) + pull_request = @options.fetch(:pull_request, false) || PivotalIntegration::Util::Git.finish_mode == :pull_request if pull_request PivotalIntegration::Util::Git.push PivotalIntegration::Util::Git.branch_name PivotalIntegration::Util::Git.create_pull_request(@configuration.story) PivotalIntegration::Util::Story.mark(@configuration.story, :finished)