def parser(subparsers, func, name, help):
    """
    Return a new parser attached to a subparsers object.
    """
    parser = subparsers.add_parser(name=name, help=help)
    parser.set_defaults(func=func)
    return parser
