compute requiredArgs at compile-time