 username = config.username
 password = config.password
 repoPath = config.repo_path
-baseBranch = config.repo_branch or 'master'
+baseBranch = process.argv[2] or config.repo_branch or 'master'
+isHotfix = !!process.argv[2]
 
 repoUrl = "#{GITHUB_REPO_API_ROOT}#{repoPath}"
+
+
 
 callGithubAPI = ({url, callback}) ->
   request

        console.log error, body
      else
        pullRequests = JSON.parse(body)
          .filter (pullRequest) ->
            new Date(pullRequest.merged_at) > time
          .filter (pullRequest) ->
            pullRequest.base.ref is baseBranch
        if pullRequests.length
          printPullRequestsReport(pullRequests)
        else

      switch response.statusCode
        when 200
          createdAt = (JSON.parse(body).filter (release) =>
            ((release.target_commitish is 'master') or isHotfix) and !release.prerelease)[0]?.created_at
          lastedReleaseTime = if createdAt then new Date(createdAt) else new Date(1970,1,1)
          console.log "Last release time is #{lastedReleaseTime.toLocaleDateString()} #{lastedReleaseTime.toLocaleTimeString()}\n"
          resolve(lastedReleaseTime)
