Skip to content

Commit ac6909a

Browse files
committed
fixed short-form of --clear-credentials flag
1 parent 2cd0e98 commit ac6909a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/www/docs/cli/swa-deploy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Here are the options you can use with `swa deploy`:
168168
- `-C, --client-id <clientId>`: Azure client ID
169169
- `-CS, --client-secret <clientSecret>`: Azure client secret
170170
- `-n, --app-name <appName>`: Azure Static Web App application name
171-
- `-cc, --clear-credentials`: clear persisted credentials before login (default: `false`)
171+
- `-CC, --clear-credentials`: clear persisted credentials before login (default: `false`)
172172
- `-u, --use-keychain`: enable using the operating system native keychain for persistent credentials (default: `true`)
173173
- `-nu, --no-use-keychain`: disable using the operating system native keychain
174174
- `-h, --help`: display help for command

docs/www/docs/cli/swa-login.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Here are the options you can use with `swa login`:
2525
- `-C, --client-id <clientId>`: Azure client ID
2626
- `-CS, --client-secret <clientSecret>`: Azure client secret
2727
- `-n, --app-name <appName>`: Azure Static Web App application name
28-
- `-cc, --clear-credentials`: clear persisted credentials before login (default: `false`)
28+
- `-CC, --clear-credentials`: clear persisted credentials before login (default: `false`)
2929
- `-u, --use-keychain`: enable using the operating system native keychain for persistent credentials (default: `true`)
3030
- `-u, --no-use-keychain`: disable using the operating system native keychain
3131
- `-h, --help`: display help for command

src/cli/commands/login.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function addSharedLoginOptionsToCommand(command: Command) {
2020
.option("-C, --client-id <clientId>", "Azure client ID", DEFAULT_CONFIG.clientId)
2121
.option("-CS, --client-secret <clientSecret>", "Azure client secret", DEFAULT_CONFIG.clientSecret)
2222
.option("-n, --app-name <appName>", "Azure Static Web App application name", DEFAULT_CONFIG.appName)
23-
.option("-cc, --clear-credentials", "clear persisted credentials before login", DEFAULT_CONFIG.clearCredentials)
23+
.option("-CC, --clear-credentials", "clear persisted credentials before login", DEFAULT_CONFIG.clearCredentials)
2424

2525
.option("-u, --use-keychain", "enable using the operating system native keychain for persistent credentials", DEFAULT_CONFIG.useKeychain)
2626
// Note: Commander does not automatically recognize the --no-* option, so we have to explicitly use --no-use-keychain- instead

src/core/utils/options.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ describe("Testing aliases for each of the commands and their options", () => {
231231
.option("-C, --client-id [clientId]")
232232
.option("-CS, --client-secret [clientSecret]")
233233
.option("-n, --app-name [appName]")
234-
.option("-cc, --clear-credentials")
234+
.option("-CC, --clear-credentials")
235235
.option("-u, --use-keychain")
236236
.option("-nu, --no-use-keychain")
237237
.parseAsync([
@@ -249,7 +249,7 @@ describe("Testing aliases for each of the commands and their options", () => {
249249
"clientSecret",
250250
"-n",
251251
"appName",
252-
"-cc",
252+
"-CC",
253253
"-nu",
254254
]);
255255

0 commit comments

Comments
 (0)