Skip to content

Commit

Permalink
fix: command option should take string.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamriajul committed May 6, 2023
1 parent 926e5ca commit 86df67c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Expand Up @@ -13,10 +13,10 @@ module.exports = function makeProgram(program) {
program
.command('generate')
.description('Generate ttf files & dart codes. You should add the ttf file in pubspec.yaml.')
.option('--input', 'The path of the svg files. This should a directory.', './icons')
.option('--ttf', 'The output path of the ttf file.', './assets/fonts/AppIcons.ttf')
.option('--dart', 'The output path of the dart file. the class name will be according the ttf file name, eg: AppIcons.ttf -> AppIcons', './lib/icons/icons.dart')
.action(async (options) => {
.option('--input <string>', 'The path of the svg files. This should a directory.', './icons')
.option('--ttf <string>', 'The output path of the ttf file.', './assets/fonts/AppIcons.ttf')
.option('--dart <string>', 'The output path of the dart file. the class name will be according the ttf file name, eg: AppIcons.ttf -> AppIcons', './lib/icons/icons.dart')
.action(async (options, command) => {
const {input, ttf, dart} = options;
await app(input, ttf, dart);
});
Expand Down

0 comments on commit 86df67c

Please sign in to comment.