def main():
    "Test arguments and either destroy path or print help."
    if len(argv) == 2 and path.isdir(argv[1]):
        destroy(argv[1])
    else:
        print('Usage: {} <directory>'.format(path.basename(argv[0])))
Test arguments and either destroy path or print help.
recipes/Python/577670_Destroying_Directories/recipe-577670.py