Skip to content

Commit

Permalink
fix(datamuse): fix arg parsing
Browse files Browse the repository at this point in the history
Conditions not being parsed properly
  • Loading branch information
drawnepicenter committed Jun 24, 2016
1 parent 4ca3032 commit 5b153f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmds/datamuse.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ exports.handler = (argv) => {
const theme = themes.loadTheme(config.theme)
if (config.verbose) themes.labelDown('Datamuse', theme, null)
const ccont = []
ccont.push(argv.condition)
if (argv._.length > 1) {
for (let i = 0; i <= argv._.length - 1; i++) {
for (let i = 1; i <= argv._.length - 1; i++) {
ccont.push(argv._[i])
}
}
Expand Down

0 comments on commit 5b153f3

Please sign in to comment.