Но у тебя там наверняка тоже овер9к свичекейсов было, да?
Да нет, построчно читал, разбивал строку по первому /\s+/ , потом вызывал соответствующий обработчик, который там уже парсил аргументы (кое-где регулярками)
[eixini@eixini MorningStar]$ git commit -m “WIP: first notes impl” —interactive error: pathspec 'first' did not match any file(s) known to git error: pathspec 'notes' did not match any file(s) known to git error: pathspec 'impl”' did not match any file(s) known to git
[eixini@eixini MorningStar]$ git commit -m “WIP: first notes impl” —interactive error: pathspec 'first' did not match any file(s) known to git error: pathspec 'notes' did not match any file(s) known to git error: pathspec 'impl”' did not match any file(s) known to git