Re: [PATCH] Fix missing argument handling in psql getopt - Mailing list pgsql-hackers

From Quentin Rameau
Subject Re: [PATCH] Fix missing argument handling in psql getopt
Date
Msg-id 20190825180125.6b7d245f@fifth.space
Whole thread Raw
In response to Re: [PATCH] Fix missing argument handling in psql getopt  (Quentin Rameau <quinq@fifth.space>)
List 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 by date:

Previous
From: Quentin Rameau
Date:
Subject: Re: [PATCH] Fix missing argument handling in psql getopt
Next
From: Vik Fearing
Date:
Subject: The serial pseudotypes