Skip to content

Commit

Permalink
Add short aliased
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Feb 22, 2020
1 parent fe0b23e commit a6f6abc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,18 @@ const ARGS_SCHEMA = [
},
{
name: 'help',
type: Boolean
type: Boolean,
alias: 'h'
},
{
name: 'update',
type: Boolean
type: Boolean,
alias: 'u'
},
{
name: 'watch',
type: Boolean
type: Boolean,
alias: 'w'
},
{
name: 'filter',
Expand Down
8 changes: 4 additions & 4 deletions show-help.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ module.exports = function showHelp (print) {
'Show Jest snapshots of current project',
'',
b('Arguments:'),
' ' + y('--version') + ' Show version',
' ' + y('--help') + ' Show this message',
' ' + y('--update') + ' Update snapshots and show them',
' ' + y('--watch') + ' Run update on changes in *.js files'
` ${ y('--version') }, Show version`,
` ${ y('--help') }, ${ y('-h') } Show this message`,
` ${ y('--update') }, ${ y('-u') } Update snapshots and show them`,
` ${ y('--watch') }, ${ y('-w') } Run update on changes in *.js files`
)
}

0 comments on commit a6f6abc

Please sign in to comment.