model-writtenrun 2760 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Greg Sabino Mullane proposed replacing the misleading '--single requires a value' error with a first-argument diagnostic for special postgres options in #1.
- Nathan Bossart questioned maintaining a duplicate option list and suggested removing the ordering restriction in #2; Greg explained the existing argv[1] assumptions in #3, and Nathan supplied an alternative implementation in #4, while noting that database-last ordering and getopt portability remained obstacles.
- Greg flagged the alternative's changed help/version behavior in #5, and Peter Eisentraut argued that preserving conventional immediate exits and the first-argument requirement avoided unnecessary complexity in #7; Nathan agreed to return to improved diagnostics in #8.
- Nathan introduced centralized option recognition and validation inside ParseLongOption() in #9; Greg requested build-independent enum and table layouts in #10, which Nathan implemented in #11 and Greg approved in #12.
- After several months, Nathan staged #13, moving validation into the three command-line parsers so ParseLongOption() would retain its existing responsibilities, accepting some duplication and limiting the new checks to long-option handling.
- Álvaro Herrera requested clearer documentation and parser placement in #14, and Tom Lane proposed DispatchOption terminology and a clearer enum annotation in #15; Nathan incorporated these refinements in #16.
- Nathan committed #16 as 76fd342496 with only commit-message edits and announced completion in #17; the improved diagnostics landed, while removing the ordering restriction was abandoned because of complexity and behavior changes.