From 6779a96b0bc7de44298e7f5107fcf01eaed91267 Mon Sep 17 00:00:00 2001 From: Jaime Casanova Date: Wed, 13 Oct 2010 14:54:09 -0500 Subject: [PATCH] The short option for --force is now -F, because i will use the other to indicate a config file. also for simetry with repmgrd --- repmgr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repmgr.c b/repmgr.c index 97d53116..9010ab7a 100644 --- a/repmgr.c +++ b/repmgr.c @@ -63,7 +63,7 @@ main(int argc, char **argv) {"port", required_argument, NULL, 'p'}, {"username", required_argument, NULL, 'U'}, {"dest-dir", required_argument, NULL, 'D'}, - {"force", no_argument, NULL, 'f'}, + {"force", no_argument, NULL, 'F'}, {"verbose", no_argument, NULL, 'v'}, {NULL, 0, NULL, 0} }; @@ -89,7 +89,7 @@ main(int argc, char **argv) } - while ((c = getopt_long(argc, argv, "d:h:p:U:D:fv", long_options, &optindex)) != -1) + while ((c = getopt_long(argc, argv, "d:h:p:U:D:Fv", long_options, &optindex)) != -1) { switch (c) { @@ -119,7 +119,7 @@ main(int argc, char **argv) case 'D': dest_dir = optarg; break; - case 'f': + case 'F': force = true; break; case 'v':