Commit 32baf0d0 authored by Gilles Mouchard's avatar Gilles Mouchard
Browse files

Fixed CLI display bugs.

parent f0128733
Pipeline #18566 passed with stages
in 7 minutes and 54 seconds
......@@ -37,7 +37,6 @@ function help()
console.log("\t--help display this help and exit");
console.log("\t--version output version information and exit");
console.log("\t--user=<name> MongoDB user name");
console.log("\t--project=<project> PKM project name");
console.log("\t--host=<host:port> MongoDB host (default: '" + PKM.global_config.db_host + "')");
console.log("\t--pkm-db=<database> MongoDB PKM management database (default: '" + PKM.global_config.pkm_db + "')");
console.log("\t--debug enable debugging messages (default: " + (PKM.global_config.debug ? "enabled" : "disabled") + ")");
......
......@@ -77,7 +77,7 @@ parse_cmdline(['help', 'version', 'admin', 'db', 'host', 'pkm-db', 'role', 'debu
debug : debug
};
const pkm_promise = password_reader.read_password(user_name + '@' + (pkm_db ? pkm_db : PKM.global_config.pkm_db) + '\'s password:').then((admin_password) => PKM.login(admin, admin_password, config));
const pkm_promise = password_reader.read_password(admin + '@' + (pkm_db ? pkm_db : PKM.global_config.pkm_db) + '\'s password:').then((admin_password) => PKM.login(admin, admin_password, config));
pkm_promise.then((pkm) =>
{
pkm.get_user(user_name).then((user) =>
......
......@@ -1096,7 +1096,6 @@ Options:
--help display this help and exit
--version output version information and exit
--user=&lt;name&gt; MongoDB user name
--project=&lt;project&gt; PKM project name
--host=&lt;host:port&gt; MongoDB host (default: &#39;pkm-api_mongodb_1:27017&#39;)
--pkm-db=&lt;database&gt; MongoDB PKM management database (default: &#39;pkm&#39;)
--debug enable debugging messages (default: disabled)
......
......@@ -1232,7 +1232,6 @@ The following REST API documentations (generated with OpenAPI generator) are ava
--help display this help and exit
--version output version information and exit
--user=<name> MongoDB user name
--project=<project> PKM project name
--host=<host:port> MongoDB host (default: 'pkm-api_mongodb_1:27017')
--pkm-db=<database> MongoDB PKM management database (default: 'pkm')
--debug enable debugging messages (default: disabled)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment