def __init__ ( self , name , flag , * * kwargs ) : self . name = name self . flag = flag self . options = kwargs
is nargs allowed in custom action argparse python
Argument class constructor should be used inside a class that inherits the BaseAction class .
def __init__(self, name, flag, **kwargs):
    """
    Argument class constructor, should be used inside a class that inherits the BaseAction class.

    :param name(str): the optional argument name to be used with two slahes (--cmd)
    :param flag(str): a short flag for the argument (-c)
    :param \*\*kwargs: all keywords arguments supported for argparse actions.
    """
    self.name = name
    self.flag = flag
    self.options = kwargs