1. The logic doesn't work as expected: an extra folder `-d` is created, and the file name is incorrect.
2. If I run the command a second time, it causes an error.
Tip: Read about the `argpa...
```suggestion
if args.f is None or args.d is not None:
create_dirs()
if args.d is not None:
os.chdir(os.path.join(*args.d))
if args.f is not None:
create_file()
```
1. **Readability**: Independent blocks are easier to understand than nested structures.
2. **Avoids nesting**: No deep indentation, making the code cleaner.
This will look somewhat better. :)
```suggestion
if args.f is None or args.d is not None:
create_dirs()
if args.d is not None:
os.chdir(os.path.join(*args.d))
if args.f is not Non...