def add_remote_parser(sub_parser):
    """
    Adds a sub-parser for the "remote" sub-command to the parser provided.

    :param sub_parser: the parser to add to
    :type sub_parser: <class 'argparse.ArgumentParser'>
    :return: the parser added
    :rtype: <class 'argparse.ArgumentParser'>
    """
    remote_parser = sub_parser.add_parser('remote', help=
        'Initialise a new remote')
    remote_parser.add_argument('-n', '--name', help='Name of the remote')
    remote_parser.add_argument('-u', '--url', help='Url of the remote')
    remote_parser.add_argument('-a', '--add', help='Used to add a remote',
        action='store_true')
    remote_parser.add_argument('-v', '--verbose', help='verbose remote',
        action='store_true')
    remote_parser.add_argument('--global', help=
        'Used to specify a global remote', action='store_true', dest='glob')
    return remote_parser
