|
28 | 28 | main(int argc, char *argv[])
|
29 | 29 | {
|
30 | 30 | static struct option long_options[] = {
|
31 |
| - {"admin", required_argument, NULL, 'a'}, |
| 31 | + {"with-admin", required_argument, NULL, 'a'}, |
32 | 32 | {"connection-limit", required_argument, NULL, 'c'},
|
33 | 33 | {"createdb", no_argument, NULL, 'd'},
|
34 | 34 | {"no-createdb", no_argument, NULL, 'D'},
|
35 | 35 | {"echo", no_argument, NULL, 'e'},
|
36 | 36 | {"encrypted", no_argument, NULL, 'E'},
|
37 |
| - {"role", required_argument, NULL, 'g'}, |
| 37 | + {"role", required_argument, NULL, 'g'}, /* kept for backward |
| 38 | + * compatibility */ |
| 39 | + {"member-of", required_argument, NULL, 'g'}, |
38 | 40 | {"host", required_argument, NULL, 'h'},
|
39 | 41 | {"inherit", no_argument, NULL, 'i'},
|
40 | 42 | {"no-inherit", no_argument, NULL, 'I'},
|
41 | 43 | {"login", no_argument, NULL, 'l'},
|
42 | 44 | {"no-login", no_argument, NULL, 'L'},
|
43 |
| - {"member", required_argument, NULL, 'm'}, |
| 45 | + {"with-member", required_argument, NULL, 'm'}, |
44 | 46 | {"port", required_argument, NULL, 'p'},
|
45 | 47 | {"pwprompt", no_argument, NULL, 'P'},
|
46 | 48 | {"createrole", no_argument, NULL, 'r'},
|
@@ -414,19 +416,19 @@ help(const char *progname)
|
414 | 416 | printf(_("Usage:\n"));
|
415 | 417 | printf(_(" %s [OPTION]... [ROLENAME]\n"), progname);
|
416 | 418 | printf(_("\nOptions:\n"));
|
417 |
| - printf(_(" -a, --admin=ROLE this role will be a member of new role with admin\n" |
| 419 | + printf(_(" -a, --with-admin=ROLE ROLE will be a member of new role with admin\n" |
418 | 420 | " option\n"));
|
419 | 421 | printf(_(" -c, --connection-limit=N connection limit for role (default: no limit)\n"));
|
420 | 422 | printf(_(" -d, --createdb role can create new databases\n"));
|
421 | 423 | printf(_(" -D, --no-createdb role cannot create databases (default)\n"));
|
422 | 424 | printf(_(" -e, --echo show the commands being sent to the server\n"));
|
423 |
| - printf(_(" -g, --role=ROLE new role will be a member of this role\n")); |
| 425 | + printf(_(" -g, --member-of=ROLE new role will be a member of ROLE\n")); |
424 | 426 | printf(_(" -i, --inherit role inherits privileges of roles it is a\n"
|
425 | 427 | " member of (default)\n"));
|
426 | 428 | printf(_(" -I, --no-inherit role does not inherit privileges\n"));
|
427 | 429 | printf(_(" -l, --login role can login (default)\n"));
|
428 | 430 | printf(_(" -L, --no-login role cannot login\n"));
|
429 |
| - printf(_(" -m, --member=ROLE this role will be a member of new role\n")); |
| 431 | + printf(_(" -m, --with-member=ROLE ROLE will be a member of new role\n")); |
430 | 432 | printf(_(" -P, --pwprompt assign a password to new role\n"));
|
431 | 433 | printf(_(" -r, --createrole role can create new roles\n"));
|
432 | 434 | printf(_(" -R, --no-createrole role cannot create roles (default)\n"));
|
|
0 commit comments