def main():
    """function to """
    # parse arg to find file(s)
    parser = argparse.ArgumentParser()
    parser.add_argument("-f", "--file",
                        help="convert the markdown file to HTML")
    parser.add_argument("-d", "--directory",
                        help="convert the markdown files in the directory to HTML")
    parser.add_argument("-o", "--output",
                        help="chose the output filename")
    parser.add_argument("--no_browser",  nargs='?', const=True,
                        help="if stated, will prevent browser from opening")
    args = parser.parse_args()

    print(args)

    superMarkdown = SuperMarkdown()

    if args.output:  # get the new output url
        superMarkdown.export_url = args.output

    if args.no_browser:
        superMarkdown.open_browser = False

    if args.directory:  # get all files from directory
        superMarkdown.add_toc()
        files = [file for file in os.listdir(args.directory) if not os.path.isdir(file)]
        superMarkdown.add_content(*files)

    elif args.file:  # get the file from directory
        superMarkdown.add_content(args.file)

    else:  # get the default markdown file `ressources/test.markdown`
        superMarkdown.add_content('SuperMarkdown/ressources/test.md')

    superMarkdown.export()
function to