diff options
Diffstat (limited to 'src/bin/scripts/createdb.c')
-rw-r--r-- | src/bin/scripts/createdb.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/bin/scripts/createdb.c b/src/bin/scripts/createdb.c index a1482df3d98..fa1713a3a0c 100644 --- a/src/bin/scripts/createdb.c +++ b/src/bin/scripts/createdb.c @@ -79,16 +79,37 @@ main(int argc, char *argv[]) handle_help_version_opts(argc, argv, "createdb", help); - while ((c = getopt_long(argc, argv, "h:p:U:wWeO:D:T:E:l:S:", long_options, &optindex)) != -1) + while ((c = getopt_long(argc, argv, "D:eE:h:l:O:p:S:T:U:wW", long_options, &optindex)) != -1) { switch (c) { + case 'D': + tablespace = pg_strdup(optarg); + break; + case 'e': + echo = true; + break; + case 'E': + encoding = pg_strdup(optarg); + break; case 'h': host = pg_strdup(optarg); break; + case 'l': + locale = pg_strdup(optarg); + break; + case 'O': + owner = pg_strdup(optarg); + break; case 'p': port = pg_strdup(optarg); break; + case 'S': + strategy = pg_strdup(optarg); + break; + case 'T': + template = pg_strdup(optarg); + break; case 'U': username = pg_strdup(optarg); break; @@ -98,33 +119,12 @@ main(int argc, char *argv[]) case 'W': prompt_password = TRI_YES; break; - case 'e': - echo = true; - break; - case 'O': - owner = pg_strdup(optarg); - break; - case 'D': - tablespace = pg_strdup(optarg); - break; - case 'T': - template = pg_strdup(optarg); - break; - case 'E': - encoding = pg_strdup(optarg); - break; - case 'S': - strategy = pg_strdup(optarg); - break; case 1: lc_collate = pg_strdup(optarg); break; case 2: lc_ctype = pg_strdup(optarg); break; - case 'l': - locale = pg_strdup(optarg); - break; case 3: maintenance_db = pg_strdup(optarg); break; |