Skip to content

Commit

Permalink
Update command parameter is empty output help.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 11, 2018
1 parent 743251c commit 8f4e956
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/colors
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@ args.filter(function (arg) {
}
output += scripts;
}
})
});

if (args && args.length === 0) {
help= true;
}

var _styles = require('../lib/styles-name')
var colors_name = _styles.colors;
var styles_name = _styles.styles;

if(help){
if (help) {
log('')
log('\33[2J') // 清屏
log(' Usage: colors')
Expand Down

0 comments on commit 8f4e956

Please sign in to comment.