Order getopt arguments
Peter Eisentraut <peter@eisentraut.org>
Order getopt arguments Order the letters in the arguments of getopt() and getopt_long(), as well as in the subsequent switch statements. In most cases, I used alphabetical with lower case first. In a few cases, existing different orders (e.g., upper case first) was kept to reduce the diff size. Discussion: https://www.postgresql.org/message-id/flat/3efd0fe8-351b-f836-9122-886002602357%40enterprisedb.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/bootstrap/bootstrap.c | modified | +26 −26 |
| src/backend/postmaster/postmaster.c | modified | +28 −28 |
| src/backend/tcop/postgres.c | modified | +27 −27 |
| src/bin/pg_amcheck/pg_amcheck.c | modified | +5 −5 |
| src/bin/pg_archivecleanup/pg_archivecleanup.c | modified | +1 −1 |
| src/bin/pg_basebackup/pg_basebackup.c | modified | +54 −54 |
| src/bin/pg_basebackup/pg_receivewal.c | modified | +20 −21 |
| src/bin/pg_basebackup/pg_recvlogical.c | modified | +4 −4 |
| src/bin/pgbench/pgbench.c | modified | +103 −103 |
| src/bin/pg_checksums/pg_checksums.c | modified | +7 −7 |
| src/bin/pg_upgrade/option.c | modified | +1 −1 |
| src/bin/scripts/clusterdb.c | modified | +19 −19 |
| src/bin/scripts/createdb.c | modified | +22 −22 |
| src/bin/scripts/dropdb.c | modified | +10 −10 |
| src/bin/scripts/dropuser.c | modified | +7 −7 |
| src/bin/scripts/reindexdb.c | modified | +28 −28 |
| src/bin/scripts/vacuumdb.c | modified | +46 −52 |
| src/interfaces/ecpg/preproc/ecpg.c | modified | +46 −45 |
| src/test/modules/libpq_pipeline/libpq_pipeline.c | modified | +4 −4 |
Discussion
- Order getopt arguments 8 messages · 2022-12-05 → 2022-12-12