11 lines
310 B
Python
Executable File
11 lines
310 B
Python
Executable File
from pathlib import Path
|
|
|
|
def main(args):
|
|
if args == []:
|
|
print("touch_file: no arguments were given")
|
|
elif args == ["-h"] or args == ["--help"]:
|
|
print("touch_file: bro was lazy")
|
|
else:
|
|
for target in args:
|
|
path = Path(target)
|
|
path.touch(exist_ok=True) |