Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
core1024 committed Dec 23, 2024
1 parent 7239a4a commit 6e229b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions generate_descriptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
});
}

Expand Down

0 comments on commit 6e229b5

Please sign in to comment.