pg_rewind: fix -R and -S options
A character transposition in the getopt_long() string meant that the
option meant for -S was being applied to -R:
pg_rewind: option requires an argument -- R
Fix that.
@@ -125,7 +125,7 @@ main(int argc, char **argv)
}
}
- while ((c = getopt_long(argc, argv, "D:nPR:S", long_options, &option_index)) != -1)
+ while ((c = getopt_long(argc, argv, "D:nPRS:", long_options, &option_index)) != -1)
{
switch (c)
{
