Refactored ARGV parsing to use lambda