Skip to content

Commit 62af5c2

Browse files
authored
chore(cli-repl): add versioned api flags to --help (#795)
1 parent d515a41 commit 62af5c2

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

packages/cli-repl/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ CLI interface for [MongoDB Shell][mongosh], an extension to Node.js REPL with Mo
4747
--keyVaultNamespace [arg] database.collection to store encrypted FLE parameters
4848
--kmsURL [arg] Test parameter to override the URL of the KMS endpoint
4949
50+
API version options:
51+
52+
--apiVersion [arg] Specifies the API version to connect with
53+
--apiStrict Use strict API version mode
54+
--apiDeprecationErrors Fail deprecated commands for the specified API version
55+
5056
DB Address Examples:
5157
5258
foo Foo database on local machine

packages/cli-repl/src/constants.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ export const USAGE = `
4747
--tlsCertificateSelector [arg] ${i18n.__('cli-repl.args.tlsCertificateSelector')}
4848
--tlsDisabledProtocols [arg] ${i18n.__('cli-repl.args.tlsDisabledProtocols')}
4949
50+
${clr(i18n.__('cli-repl.args.apiVersionOptions'), ['bold', 'yellow'])}
51+
52+
--apiVersion [arg] ${i18n.__('cli-repl.args.apiVersion')}
53+
--apiStrict ${i18n.__('cli-repl.args.apiStrict')}
54+
--apiDeprecationErrors ${i18n.__('cli-repl.args.apiDeprecationErrors')}
55+
5056
${clr(i18n.__('cli-repl.args.fleOptions'), ['bold', 'yellow'])}
5157
5258
--awsAccessKeyId [arg] ${i18n.__('cli-repl.args.awsAccessKeyId')}

packages/i18n/src/locales/en_US.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ const translations: Catalog = {
3838
tlsAllowInvalidCertificates: 'Allow connections to servers with invalid certificates',
3939
tlsCertificateSelector: 'TLS Certificate in system store (Windows and macOS only)',
4040
tlsDisabledProtocols: 'Comma separated list of TLS protocols to disable [TLS1_0,TLS1_1,TLS1_2]',
41+
apiVersionOptions: 'API version options:',
42+
apiVersion: 'Specifies the API version to connect with',
43+
apiStrict: 'Use strict API version mode',
44+
apiDeprecationErrors: 'Fail deprecated commands for the specified API version',
4145
fleOptions: 'FLE Options:',
4246
awsAccessKeyId: 'AWS Access Key for FLE Amazon KMS',
4347
awsSecretAccessKey: 'AWS Secret Key for FLE Amazon KMS',

0 commit comments

Comments
 (0)