refactor: move CLI options validation to main()