def add_edi_arguments(parser, required=False):
    """
    Add EDI arguments parser

    :param parser: add arguments to it
    :type parser: argparse.ArgumentParser
    :param required: (Optional) mark edi arguments as required if it equals True
    :type required: bool
    :return: None
    """
    parser.add_argument('--edi', type=str, help='EDI server host', required
        =required)
    parser.add_argument('--token', type=str, help='EDI server token',
        required=required)
