more-python/exercises/ex12/rm

13 lines
302 B
Plaintext
Raw Normal View History

2023-03-07 12:23:28 -06:00
#!/usr/bin/env python
# Exercise 12a
# ls command
import argparse
from pathlib import Path
parser = argparse.ArgumentParser()
parser.add_argument("paths", default=Path().cwd(), nargs="*", type=Path)
parser.add_argument("-r", "--recursive", action="store_true")
args = parser.parse_args()
result = ""