isValidFlagsFormat static method
Validate switch flags format
Implementation
static bool isValidFlagsFormat(String flags) {
// Flags should be comma-separated, starting with - or --
// Examples: "-s", "--stg", "-s, --stg", "-p, --prod"
final parts = flags.split(',').map((f) => f.trim());
return parts.every((part) => part.startsWith('-') || part.startsWith('--'));
}