forked from MapComplete/MapComplete
Scripts: improve help text for removeTranslationString.ts
This commit is contained in:
parent
097e07c747
commit
eb7a7ad63c
1 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ async function main(args: string[]) {
|
|||
|
||||
if (args.length !== 1) {
|
||||
console.log(
|
||||
"Usage: first argument is the fully qualified key of the string to remove. Removes translations in the core translations, unless '--layers' or '--themes' is given"
|
||||
"Usage: first argument is the fully qualified key of the string to remove. Removes translations in the core translations, unless '--layers' or '--themes' is given. In the latter case, use `<layername>.path.to.translations. Keep in mind that items with an 'id' use the id instead of the index."
|
||||
)
|
||||
return
|
||||
}
|
||||
|
@ -42,12 +42,12 @@ async function main(args: string[]) {
|
|||
if (removedLanguages.length === 0) {
|
||||
console.warn("No items removed. Doublecheck the paths")
|
||||
} else {
|
||||
console.log("Removed items in " + removedLanguages.join(", "))
|
||||
console.log("Removed items in " + removedLanguages.join(", "), ";", removedLanguages.length, "in total")
|
||||
}
|
||||
}
|
||||
|
||||
const args = [...process.argv]
|
||||
args.splice(0, 2)
|
||||
main(args).then((_) => {
|
||||
main(args).then(() => {
|
||||
console.log("All done!")
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue