Prints a list of the users tickets and provides filtering options

def me(show_all=False, show_inprogress=False, show_open=False, quiet=False):
    """
    Prints a list of the users tickets and provides filtering options
    """
    default = not [arg for arg in sys.argv[2:] if arg not in ('-q', '--quiet')]

    status_exclusions = ['Backlog', 'Open', 'Closed']
    status_inclusions = []

    if show_inprogress or default:
        status_inclusions.append('In Progress')
    if show_open:
        status_exclusions = []
        status_inclusions.append('Open')
    elif show_all:
        status_exclusions = ['Closed']

    jql = \
        """
            assignee=currentUser()
            AND resolved is EMPTY
        """
    # We are switching between showing everything and only showing in progress items
    if not show_all and not show_open:
        jql += ' AND status was "In Progress" '

    inclusion_str = None
    if len(status_inclusions):
        inclusion_str = "status in ({0})".format((','.join('"' + issue_status + '"' for issue_status in status_inclusions)))
    exclusion_str = None
    if len(status_exclusions):
        exclusion_str = "status not in ({0})".format((','.join('"' + issue_status + '"' for issue_status in status_exclusions)))
    jql += " AND ( {0} {1} {2} ) ".format(inclusion_str if inclusion_str else "",
                                          " OR " if inclusion_str and exclusion_str else "",
                                          exclusion_str if exclusion_str else "")

    jql += " ORDER BY updated DESC "

    results = jira.search_issues(jql)

    for result in results:

        issue = result.key
        updated = dateutil.parser.parse(result.fields.updated).strftime("%a %x %I:%M %p")
        status = result.fields.status.name

        cycletime = jira.get_cycle_time(result.key)
        cycletime_str = " -- %.1f days" % cycletime if cycletime else ""
        print "%s (%s) %s%s" % (issue, updated, status, cycletime_str)

        # If verbose, add a line for the issue title
        if not quiet:
            title = result.fields.summary
            title = (title[:75] + '..') if len(title) > 75 else title
            print "  %s\n" % title

    # Print result count and usage hint for help
    print "\033[0;32m%s issue(s) found\033[00m (use 'jtime me -h' for filter options)" % len(results)

    print "One week avg cycle time: %.1f days" % jira.get_week_avg_cycletime()