import argparse from path import Path def make_index_cmd(): """ Generate an index file for each directory that itself has an index.htm file """ parser = argparse.ArgumentParser() parser.add_argument('root', default=Path('.'), type=Path) args = parser.parse_args() print('