forked from svrjs/svrjs
Convert even more strings to template strings
This commit is contained in:
parent
41901d9a27
commit
e293c08592
1 changed files with 6 additions and 12 deletions
18
src/index.js
18
src/index.js
|
@ -134,16 +134,14 @@ for (
|
||||||
args[i] == "/h" ||
|
args[i] == "/h" ||
|
||||||
args[i] == "/?"
|
args[i] == "/?"
|
||||||
) {
|
) {
|
||||||
console.log(name + " usage:");
|
console.log(`${name} usage:`);
|
||||||
console.log(
|
console.log(
|
||||||
"node svr.js [-h] [--help] [-?] [/h] [/?] [--secure] [--reset] [--clean] [--disable-mods] [--single-threaded] [-v] [--version]",
|
"node svr.js [-h] [--help] [-?] [/h] [/?] [--secure] [--reset] [--clean] [--disable-mods] [--single-threaded] [-v] [--version]",
|
||||||
);
|
);
|
||||||
console.log("-h -? /h /? --help -- Displays help");
|
console.log("-h -? /h /? --help -- Displays help");
|
||||||
console.log("--clean -- Cleans up files created by " + name);
|
console.log("--clean -- Cleans up files created by " + name);
|
||||||
console.log(
|
console.log(
|
||||||
"--reset -- Resets " +
|
`--reset -- Resets ${name} to default settings (WARNING: DANGEROUS)`,
|
||||||
name +
|
|
||||||
" to default settings (WARNING: DANGEROUS)",
|
|
||||||
);
|
);
|
||||||
console.log("--secure -- Runs HTTPS server");
|
console.log("--secure -- Runs HTTPS server");
|
||||||
console.log("--disable-mods -- Disables mods (safe mode)");
|
console.log("--disable-mods -- Disables mods (safe mode)");
|
||||||
|
@ -180,17 +178,15 @@ for (
|
||||||
} else if (args[i] == "--single-threaded") {
|
} else if (args[i] == "--single-threaded") {
|
||||||
process.singleThreaded = true;
|
process.singleThreaded = true;
|
||||||
} else {
|
} else {
|
||||||
console.log("Unrecognized argument: " + args[i]);
|
console.log(`Unrecognized argument: ${args[i]}`);
|
||||||
console.log(name + " usage:");
|
console.log(`${name} usage:`);
|
||||||
console.log(
|
console.log(
|
||||||
"node svr.js [-h] [--help] [-?] [/h] [/?] [--secure] [--reset] [--clean] [--disable-mods] [--single-threaded] [-v] [--version]",
|
"node svr.js [-h] [--help] [-?] [/h] [/?] [--secure] [--reset] [--clean] [--disable-mods] [--single-threaded] [-v] [--version]",
|
||||||
);
|
);
|
||||||
console.log("-h -? /h /? --help -- Displays help");
|
console.log("-h -? /h /? --help -- Displays help");
|
||||||
console.log("--clean -- Cleans up files created by " + name);
|
console.log("--clean -- Cleans up files created by " + name);
|
||||||
console.log(
|
console.log(
|
||||||
"--reset -- Resets " +
|
`--reset -- Resets ${name} to default settings (WARNING: DANGEROUS)`,
|
||||||
name +
|
|
||||||
" to default settings (WARNING: DANGEROUS)",
|
|
||||||
);
|
);
|
||||||
console.log("--secure -- Runs HTTPS server");
|
console.log("--secure -- Runs HTTPS server");
|
||||||
console.log("--disable-mods -- Disables mods (safe mode)");
|
console.log("--disable-mods -- Disables mods (safe mode)");
|
||||||
|
@ -2150,9 +2146,7 @@ function start(init) {
|
||||||
commands[command](argss, serverconsole.climessage);
|
commands[command](argss, serverconsole.climessage);
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
serverconsole.climessage(
|
serverconsole.climessage(`Unrecognized command "${command}".`);
|
||||||
'Unrecognized command "' + command + '".',
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue