diff options
author | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2020-08-20 13:00:50 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-20 18:12:14 +0000 |
commit | d3064df927c97abd402ee5768ab57667ed6849c9 (patch) | |
tree | c246336371b545bdc5942dab73aef5c094d99bd4 /src/mongo/shell/shell_options.h | |
parent | 526230bafa6e5a49f5783507734fba93486c19ae (diff) | |
download | mongo-d3064df927c97abd402ee5768ab57667ed6849c9.tar.gz |
SERVER-49380 Add API params to mongo shell
Diffstat (limited to 'src/mongo/shell/shell_options.h')
-rw-r--r-- | src/mongo/shell/shell_options.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/shell/shell_options.h b/src/mongo/shell/shell_options.h index 45ac4e55455..2d5582e4ffc 100644 --- a/src/mongo/shell/shell_options.h +++ b/src/mongo/shell/shell_options.h @@ -68,6 +68,10 @@ struct ShellGlobalParams { std::string script; + std::string apiVersion; + bool apiStrict; + bool apiDeprecationErrors; + bool autoKillOp = false; bool useWriteCommandsDefault = true; @@ -98,4 +102,6 @@ bool handlePreValidationMongoShellOptions(const moe::Environment& params, Status storeMongoShellOptions(const moe::Environment& params, const std::vector<std::string>& args); void redactPasswordOptions(int argc, char** argv); + +std::string getApiParametersJSON(); } // namespace mongo |