Rename some createuser options.
authorNathan Bossart <[email protected]>
Mon, 22 May 2023 03:03:56 +0000 (20:03 -0700)
committerNathan Bossart <[email protected]>
Mon, 22 May 2023 03:06:38 +0000 (20:06 -0700)
commit2dcd1578c40153250836df62f625863056c28a81
treef2a3818b3ec20ee30f0e6f504db6a2130bdd1a46
parentde7c3fd34e0fc0a3f77537e1d12efcd01d255534
Rename some createuser options.

This change renames --admin to --with-admin, --role to --member-of,
and --member to --with-member.  Many people found the previous
names to be confusing.  The --admin and --member options are new in
v16, but --role has been there for a while, so that one has been
kept (but left undocumented) for backward compatibility.

Suggested-by: Peter Eisentraut
Reviewed-by: Tom Lane, Michael Paquier
Discussion: https://postgr.es/m/ZFvVZvQDliIWmOwg%40momjian.us
doc/src/sgml/ref/createuser.sgml
src/bin/scripts/createuser.c
src/bin/scripts/t/040_createuser.pl