mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 00:13:12 +09:00
#59 improved helptext for new features
This commit is contained in:
1 parent
4b0bedbacf
commit
712b33b4a7
1 file changed
+4
-2
@@ -77,7 +77,9 @@ if (!command || command == "help" || command == "--help") {
|
|||||||
console.error("node client.js list");
|
console.error("node client.js list");
|
||||||
console.error("node client.js delete [instance]");
|
console.error("node client.js delete [instance]");
|
||||||
console.error("To download the latest version of the Clusterio lua mod, do");
|
console.error("To download the latest version of the Clusterio lua mod, do");
|
||||||
console.error("node client.js download");
|
console.error("node client.js manage shared mods download clusterio");
|
||||||
|
console.error("For more management options, do");
|
||||||
|
console.error("node client.js manage");
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
} else if (command == "list") {
|
} else if (command == "list") {
|
||||||
let instanceNames = fileOps.getDirectoriesSync("./instances/");
|
let instanceNames = fileOps.getDirectoriesSync("./instances/");
|
||||||
@@ -128,7 +130,7 @@ if (!command || command == "help" || command == "--help") {
|
|||||||
//const fullUsage = 'node client.js manage [instance, "shared"] ["mods", "config"] ...';
|
//const fullUsage = 'node client.js manage [instance, "shared"] ["mods", "config"] ...';
|
||||||
function usage(instance, tool, action){
|
function usage(instance, tool, action){
|
||||||
if(tool && tool == "mods"){
|
if(tool && tool == "mods"){
|
||||||
console.log('node client.js manage '+instance+' '+tool+' ["list", "search", "update"]');
|
console.log('node client.js manage '+instance+' '+tool+' ["list", "search", "add", "remove", "update"]');
|
||||||
} else if(tool && tool == "config") {
|
} else if(tool && tool == "config") {
|
||||||
console.log('node client.js manage '+instance+' '+tool+' ["list", "edit"]');
|
console.log('node client.js manage '+instance+' '+tool+' ["list", "edit"]');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in new issue
Block a user