Description
Several CLI commands do not validate whether the provided input file exists before attempting to open it.
Running commands with a non-existent file causes an unhandled exception and displays a raw Python traceback instead of a user-friendly error message.
Root Cause Analysis
The CLI directly attempts to open the provided file path without checking whether the file exists or handling FileNotFoundError.
Because of this, exceptions propagate to the terminal and crash the command execution.
Description
Several CLI commands do not validate whether the provided input file exists before attempting to open it.
Running commands with a non-existent file causes an unhandled exception and displays a raw Python traceback instead of a user-friendly error message.
Root Cause Analysis
The CLI directly attempts to open the provided file path without checking whether the file exists or handling FileNotFoundError.
Because of this, exceptions propagate to the terminal and crash the command execution.