Fix
Improve command-line argument parsing by providing better error messages and catching more edge cases related to illegal inputs.