diff options
author | Eduardo Chappa <chappa@washington.edu> | 2021-08-21 15:09:47 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2021-08-21 15:09:47 -0600 |
commit | e9b3f2043f7d309ecc58b907ff17d561ff972698 (patch) | |
tree | 3f7a919c6da0dc3cd9f434636efe4dfbf99224cc | |
parent | b4454c2d7049c97ed640dbe0872341731e10d464 (diff) | |
download | alpine-e9b3f2043f7d309ecc58b907ff17d561ff972698.tar.xz |
* Add short option equivalent for the -xoauth2-* options. For example,
-xoauth2-server is equivalent to -x-s; -xoauth2-client-id is equivalent
to -x-c-i, etc.
-rw-r--r-- | alpine/arg.c | 12 | ||||
-rw-r--r-- | pith/pine.hlp | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/alpine/arg.c b/alpine/arg.c index e0e26c15..e15babfb 100644 --- a/alpine/arg.c +++ b/alpine/arg.c @@ -622,7 +622,7 @@ Loop: while(--ac > 0) do_version = 1; goto Loop; } - else if(strcmp(*av, "xoauth2-server") == 0){ + else if(strcmp(*av, "xoauth2-server") == 0 || strcmp(*av, "x-s") == 0){ if(--ac){ if((str = *++av) != NULL){ if(x.name) @@ -636,7 +636,7 @@ Loop: while(--ac > 0) } goto Loop; } - else if(strcmp(*av, "xoauth2-client-id") == 0){ + else if(strcmp(*av, "xoauth2-client-id") == 0 || strcmp(*av, "x-c-i") == 0){ if(--ac){ if((str = *++av) != NULL){ if(x.client_id) @@ -650,7 +650,7 @@ Loop: while(--ac > 0) } goto Loop; } - else if(strcmp(*av, "xoauth2-client-secret") == 0){ + else if(strcmp(*av, "xoauth2-client-secret") == 0 || strcmp(*av, "x-c-s") == 0){ if(--ac){ if((str = *++av) != NULL){ if(x.client_secret) @@ -664,7 +664,7 @@ Loop: while(--ac > 0) } goto Loop; } - else if(strcmp(*av, "xoauth2-tenant") == 0){ + else if(strcmp(*av, "xoauth2-tenant") == 0 || strcmp(*av, "x-t") == 0){ if(--ac){ if((str = *++av) != NULL){ if(x.tenant) @@ -678,7 +678,7 @@ Loop: while(--ac > 0) } goto Loop; } - else if(strcmp(*av, "xoauth2-user") == 0){ + else if(strcmp(*av, "xoauth2-user") == 0 || strcmp(*av, "x-u") == 0){ if(--ac){ if((str = *++av) != NULL){ if(x.users) @@ -692,7 +692,7 @@ Loop: while(--ac > 0) } goto Loop; } - else if(strcmp(*av, "xoauth2-flow") == 0){ + else if(strcmp(*av, "xoauth2-flow") == 0 || strcmp(*av, "x-f") == 0){ if(--ac){ if((str = *++av) != NULL){ if(x.flow) diff --git a/pith/pine.hlp b/pith/pine.hlp index 2508c12a..3f57c965 100644 --- a/pith/pine.hlp +++ b/pith/pine.hlp @@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any reasonable place to be called from. Dummy change to get revision in pine.hlp ============= h_revision ================= -Alpine Commit 577 2021-08-21 14:00:38 +Alpine Commit 578 2021-08-21 15:09:38 ============= h_news ================= <HTML> <HEAD> |