From eb31a561862cdf300c725c713ed2f19b9947b57f Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Tue, 5 Apr 2016 22:30:19 +0900 Subject: [PATCH] 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. --- repmgr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repmgr.c b/repmgr.c index e3017bce..a3cca315 100644 --- a/repmgr.c +++ b/repmgr.c @@ -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'},