mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
The short option for --force is now -F, because i will use the other
to indicate a config file. also for simetry with repmgrd
This commit is contained in:
6
repmgr.c
6
repmgr.c
@@ -63,7 +63,7 @@ main(int argc, char **argv)
|
|||||||
{"port", required_argument, NULL, 'p'},
|
{"port", required_argument, NULL, 'p'},
|
||||||
{"username", required_argument, NULL, 'U'},
|
{"username", required_argument, NULL, 'U'},
|
||||||
{"dest-dir", required_argument, NULL, 'D'},
|
{"dest-dir", required_argument, NULL, 'D'},
|
||||||
{"force", no_argument, NULL, 'f'},
|
{"force", no_argument, NULL, 'F'},
|
||||||
{"verbose", no_argument, NULL, 'v'},
|
{"verbose", no_argument, NULL, 'v'},
|
||||||
{NULL, 0, NULL, 0}
|
{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)
|
switch (c)
|
||||||
{
|
{
|
||||||
@@ -119,7 +119,7 @@ main(int argc, char **argv)
|
|||||||
case 'D':
|
case 'D':
|
||||||
dest_dir = optarg;
|
dest_dir = optarg;
|
||||||
break;
|
break;
|
||||||
case 'f':
|
case 'F':
|
||||||
force = true;
|
force = true;
|
||||||
break;
|
break;
|
||||||
case 'v':
|
case 'v':
|
||||||
|
|||||||
Reference in New Issue
Block a user