Generate the __doc__ string of the decorated function by calling the nco help command

    :param tool:
    :param nco_self:
    :return:

def auto_doc(tool, nco_self):
    """
    Generate the __doc__ string of the decorated function by calling the nco help command

    :param tool:
    :param nco_self:
    :return:
    """

    def desc(func):

        func.__doc__ = nco_self.call([tool, "--help"]).get("stdout")
        return func

    return desc