Skip to content

Commit

Permalink
fix: command option setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ipetinate committed Jun 21, 2024
1 parent e385fd2 commit de1a1a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ program
program
.command('init')
.action(initAction)
.option('-e, --examples', 'Generate folders with examples', false)
.option('-e, --examples [examples]', 'Generate folders with examples', false)
.usage('init')
.usage('init -e')
.usage('init --examples')
.description(
'Init all needed setup, generate files and create folders to store assets.'
)
Expand Down
2 changes: 1 addition & 1 deletion src/utils/init-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function createPresetFolderIfNotExists({ exists, examples }) {
exists = createPresetsFolder()

if (exists) {
console.info('\n🎛️ Presets created at: ', presetFullDir)
console.info('\n🎛️ Presets created at: ', presetFullDir)
} else {
console.error('\n❌ Error: cannot create presets dir, try again')
}
Expand Down

0 comments on commit de1a1a0

Please sign in to comment.