about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2019-03-15 11:53:38 +0900
committerEugen Rochko <eugen@zeonfederated.com>2019-03-15 03:53:38 +0100
commit317c43b75be027f971c1c7e28890fdd37b63e931 (patch)
tree65ca4d7542076e8f7d77779815a4876115bf338f /config
parentd94e21f933f53010f9a3b182e7fde919d73b09a0 (diff)
Upgrade yargs to v12.0 (#9862)
Diffstat (limited to 'config')
-rw-r--r--config/webpack/translationRunner.js22
1 files changed, 10 insertions, 12 deletions
diff --git a/config/webpack/translationRunner.js b/config/webpack/translationRunner.js
index e6543fbb7..38050baf8 100644
--- a/config/webpack/translationRunner.js
+++ b/config/webpack/translationRunner.js
@@ -48,8 +48,7 @@ Use yarn "manage:translations -- --help" for usage information
   }
 };
 
-const { argv } = require('yargs')
-  .usage(`Usage: yarn manage:translations -- [OPTIONS] [LANGUAGES]
+const usage = `Usage: yarn manage:translations [OPTIONS] [LANGUAGES]
 
 Manage JavaScript translation files in Mastodon. Generates and update translations in translationsDirectory: ${translationsDirectory}
 
@@ -58,16 +57,15 @@ The RFC5646 language tag for the language you want to test or fix. If you want t
 
 Available languages:
 ${availableLanguages.join(', ')}
-`)
-  .help('h', 'show this message')
-  .alias('h', 'help')
-  .options({
-    f: {
-      alias: 'force',
-      default: false,
-      describe: 'force using the provided languages. create files if not exists.',
-      type: 'boolean',
-    },
+`;
+
+const { argv } = require('yargs')
+  .usage(usage)
+  .option('f', {
+    alias: 'force',
+    default: false,
+    describe: 'force using the provided languages. create files if not exists.',
+    type: 'boolean',
   });
 
 // check if message directory exists