mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
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:
2
repmgr.c
2
repmgr.c
@@ -161,6 +161,8 @@ main(int argc, char **argv)
|
|||||||
{"username", required_argument, NULL, 'U'},
|
{"username", required_argument, NULL, 'U'},
|
||||||
{"superuser", required_argument, NULL, 'S'},
|
{"superuser", required_argument, NULL, 'S'},
|
||||||
{"data-dir", required_argument, NULL, 'D'},
|
{"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 */
|
/* -l/--local-port is deprecated */
|
||||||
{"local-port", required_argument, NULL, 'l'},
|
{"local-port", required_argument, NULL, 'l'},
|
||||||
{"config-file", required_argument, NULL, 'f'},
|
{"config-file", required_argument, NULL, 'f'},
|
||||||
|
|||||||
Reference in New Issue
Block a user