createuser: Cleanup and fix internal option ordering
authorMichael Paquier <michael@paquier.xyz>
Wed, 13 Jul 2022 02:29:02 +0000 (11:29 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 13 Jul 2022 02:29:02 +0000 (11:29 +0900)
commit50e4c280f0661f3ef837d2c3beb5fcc100202324
tree1e3aef793eddfd04c73159afc0f295d620874d76
parent4cc832f94a583146fcf7886c9ce685894956d804
createuser: Cleanup and fix internal option ordering

This utility supports 23 options that are not really ordered in the
code, making the addition of new things more complicated than necessary.
This cleanup is in preparation for a patch to add even more options.

Discussion: https://postgr.es/m/69a9851035cf0f0477bcc5d742b031a3@oss.nttdata.com
src/bin/scripts/createuser.c