def help(file=None):
    """
    Print out syntax help for running ``astrodrizzle``

    Parameters
    ----------
    file : str (Default = None)
        If given, write out help to the filename specified by this parameter
        Any previously existing file with this name will be deleted before
        writing out the help.

    """
    helpstr = getHelpAsString(docstring=True, show_ver=True)
    if file is None:
        print(helpstr)
    else:
        with open(file, mode='w') as f:
            f.write(helpstr)