# coding: utf-8

#/
from __future__ import absolute_import

from argparse import ArgumentParser

from aoikproducerconsumerrunner.main.argpsr_const import ARG_CONSUMER_FUNC_URI_F
from aoikproducerconsumerrunner.main.argpsr_const import ARG_CONSUMER_FUNC_URI_H
from aoikproducerconsumerrunner.main.argpsr_const import ARG_CONSUMER_FUNC_URI_K
from aoikproducerconsumerrunner.main.argpsr_const import ARG_CONSUMER_FUNC_URI_V
from aoikproducerconsumerrunner.main.argpsr_const import ARG_PRODUCER_FUNC_URI_F
from aoikproducerconsumerrunner.main.argpsr_const import ARG_PRODUCER_FUNC_URI_H
from aoikproducerconsumerrunner.main.argpsr_const import ARG_PRODUCER_FUNC_URI_K
from aoikproducerconsumerrunner.main.argpsr_const import ARG_PRODUCER_FUNC_URI_V
from aoikproducerconsumerrunner.main.argpsr_const import ARG_VER_ON_A
from aoikproducerconsumerrunner.main.argpsr_const import ARG_VER_ON_F
from aoikproducerconsumerrunner.main.argpsr_const import ARG_VER_ON_H
from aoikproducerconsumerrunner.main.argpsr_const import ARG_VER_ON_K


#/
def parser_make():
    #/
    parser = ArgumentParser(add_help=True)

    #/
    parser.add_argument(
        ARG_PRODUCER_FUNC_URI_F,
        dest=ARG_PRODUCER_FUNC_URI_K,
        metavar=ARG_PRODUCER_FUNC_URI_V,
        help=ARG_PRODUCER_FUNC_URI_H,
    )

    #/
    parser.add_argument(
        ARG_CONSUMER_FUNC_URI_F,
        dest=ARG_CONSUMER_FUNC_URI_K,
        metavar=ARG_CONSUMER_FUNC_URI_V,
        help=ARG_CONSUMER_FUNC_URI_H,
    )

    #/
    parser.add_argument(
        ARG_VER_ON_F,
        dest=ARG_VER_ON_K,
        action=ARG_VER_ON_A,
        help=ARG_VER_ON_H,
    )

    #/
    return parser
