コード例 #1
0
ファイル: shell_options_init.cpp プロジェクト: Asamaha/mongo
MONGO_STARTUP_OPTIONS_STORE(MongoShellOptions)(InitializerContext* context) {
    Status ret = storeMongoShellOptions(moe::startupOptionsParsed, context->args());
    if (!ret.isOK()) {
        std::cerr << ret.toString() << std::endl;
        std::cerr << "try '" << context->args()[0] << " --help' for more information" << std::endl;
        quickExit(EXIT_BADOPTIONS);
    }
    return Status::OK();
}
コード例 #2
0
ファイル: shell_options.cpp プロジェクト: ChrisKozak/mongo
 MONGO_STARTUP_OPTIONS_STORE(MongoShellOptions)(InitializerContext* context) {
     return storeMongoShellOptions(moe::startupOptionsParsed, context->args());
 }