def add_repo_args(parser):
    """Add arguments related to adding repositories to the command line"""
    group = parser.add_argument_group('repositories')
    group.add_argument('-n', '--solution', action='append', dest=
        'solutions', default=[], metavar='solution_file', help=
        'Existing fully-pinned constraints file to use as a baseline when compiling'
        )
    group.add_argument('-s', '--source', action='append', dest='sources',
        default=[], metavar='project_dir', help=
        'Search for projects in the provided directory recursively')
    group.add_argument('-x', '--exclude-source', action='append', dest=
        'excluded_sources', default=[], help=
        'Directories to exclude when searching for projects. Applies recursively'
        )
    group.add_argument('-f', '--find-links', action='append', default=[],
        metavar='directory', help=
        'Directory to search for wheel and source distributions')
    group.add_argument('-i', '--index-url', action='append', dest=
        'index_urls', default=[], metavar='index_url', help=
        'Link to a remote index of python distributions (http or https)')
    group.add_argument('-w', '--wheel-dir', type=str, default=None, metavar
        ='wheel_dir', help=
        'Directory to which to download wheel and source distributions from remote index'
        )
    group.add_argument('--no-index', action='store_true', default=False,
        help='Do not connect to the internet to compile')
