- Replaced NULL with None - Added proper error handling with typer.BadParameter - Added if __name__ == '__main__' block