Re: [PATCH] Fix missing argument handling in psql getopt

Поиск
Список
Период
Сортировка
От Quentin Rameau
Тема Re: [PATCH] Fix missing argument handling in psql getopt
Дата
Msg-id 20190825180125.6b7d245f@fifth.space
обсуждение исходный текст
Ответ на Re: [PATCH] Fix missing argument handling in psql getopt  (Quentin Rameau <quinq@fifth.space>)
Список pgsql-hackers
> > Um ... so how would control get there with optind too large?

Sorry, I missed the simple explanation for that:

As option 'h' is missing an argument, getopt(_long) returns the
character '?' which is switched on through variable c, and the program
jumps to the '?' case handling.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Quentin Rameau
Дата:
Сообщение: Re: [PATCH] Fix missing argument handling in psql getopt
Следующее
От: Vik Fearing
Дата:
Сообщение: The serial pseudotypes