mirror of
https://github.com/Stremio/stremio-shell-ng.git
synced 2026-04-21 16:01:56 +00:00
fix logging
This commit is contained in:
parent
2b5f1f727b
commit
aec176a238
1 changed files with 4 additions and 4 deletions
|
|
@ -79,16 +79,16 @@ function parseTagArgument(value) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function usage() {
|
function usage() {
|
||||||
log(`Usage: ${basename(process.argv[1])} [options]`);
|
console.log(`Usage: ${basename(process.argv[1])} [options]`);
|
||||||
log("Options:");
|
console.log("Options:");
|
||||||
Object.keys(supportedArguments).forEach((key) => {
|
Object.keys(supportedArguments).forEach((key) => {
|
||||||
log(
|
console.log(
|
||||||
` --${key.replace(/_/g, "-")}${typeof supportedArguments[key].default !== "undefined"
|
` --${key.replace(/_/g, "-")}${typeof supportedArguments[key].default !== "undefined"
|
||||||
? " [default: " + supportedArguments[key].default.toString() + "]"
|
? " [default: " + supportedArguments[key].default.toString() + "]"
|
||||||
: ""
|
: ""
|
||||||
}`
|
}`
|
||||||
);
|
);
|
||||||
log(` ${supportedArguments[key].description}`);
|
console.log(` ${supportedArguments[key].description}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue