mirror of
https://github.com/Stremio/stremio-shell-ng.git
synced 2026-03-11 17:15:49 +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() {
|
||||
log(`Usage: ${basename(process.argv[1])} [options]`);
|
||||
log("Options:");
|
||||
console.log(`Usage: ${basename(process.argv[1])} [options]`);
|
||||
console.log("Options:");
|
||||
Object.keys(supportedArguments).forEach((key) => {
|
||||
log(
|
||||
console.log(
|
||||
` --${key.replace(/_/g, "-")}${typeof supportedArguments[key].default !== "undefined"
|
||||
? " [default: " + supportedArguments[key].default.toString() + "]"
|
||||
: ""
|
||||
}`
|
||||
);
|
||||
log(` ${supportedArguments[key].description}`);
|
||||
console.log(` ${supportedArguments[key].description}`);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue