def get_params_parser():
    """Parse command line arguments"""

    parser = argparse.ArgumentParser()

    parser.add_argument("-e", "--elastic_url", default="http://127.0.0.1:9200",
                        help="Host with elastic search (default: http://127.0.0.1:9200)")
    parser.add_argument('-g', '--debug', dest='debug', action='store_true')
    parser.add_argument('-t', '--token', dest='token', help="GitHub token")
    parser.add_argument('-o', '--org', dest='org', nargs='*', help='GitHub Organization/s to be analyzed')
    parser.add_argument('-l', '--list', dest='list', action='store_true', help='Just list the repositories')
    parser.add_argument('-n', '--nrepos', dest='nrepos', type=int, default=NREPOS,
                        help='Number of GitHub repositories from the Organization to be analyzed (default:0, no limit)')
    parser.add_argument('--db-projects-map', help="Database to include the projects Mapping DB")

    return parser
Parse command line arguments