Enable long option --pgdata as alias for -D/--data-dir

pg_ctl provides -D/--pgdata; we want to be as close to the core utilities
as possible.
This commit is contained in:
Ian Barwick
2016-04-05 22:30:19 +09:00
parent 8cd2c6fd05
commit eb31a56186

View File

@@ -158,6 +158,8 @@ main(int argc, char **argv)
{"username", required_argument, NULL, 'U'},
{"superuser", required_argument, NULL, 'S'},
{"data-dir", required_argument, NULL, 'D'},
/* alias for -D/--data-dir, following pg_ctl usage */
{"pgdata", required_argument, NULL, 'D'},
/* -l/--local-port is deprecated */
{"local-port", required_argument, NULL, 'l'},
{"config-file", required_argument, NULL, 'f'},