aboutsummaryrefslogtreecommitdiff
path: root/src/bin/scripts/dropdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/scripts/dropdb.c')
-rw-r--r--src/bin/scripts/dropdb.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/bin/scripts/dropdb.c b/src/bin/scripts/dropdb.c
index afc00dac784..3ca5b82ddce 100644
--- a/src/bin/scripts/dropdb.c
+++ b/src/bin/scripts/dropdb.c
@@ -65,13 +65,22 @@ main(int argc, char *argv[])
handle_help_version_opts(argc, argv, "dropdb", help);
- while ((c = getopt_long(argc, argv, "h:p:U:wWeif", long_options, &optindex)) != -1)
+ while ((c = getopt_long(argc, argv, "efh:ip:U:wW", long_options, &optindex)) != -1)
{
switch (c)
{
+ case 'e':
+ echo = true;
+ break;
+ case 'f':
+ force = true;
+ break;
case 'h':
host = pg_strdup(optarg);
break;
+ case 'i':
+ interactive = true;
+ break;
case 'p':
port = pg_strdup(optarg);
break;
@@ -84,15 +93,6 @@ main(int argc, char *argv[])
case 'W':
prompt_password = TRI_YES;
break;
- case 'e':
- echo = true;
- break;
- case 'i':
- interactive = true;
- break;
- case 'f':
- force = true;
- break;
case 0:
/* this covers the long options */
break;