Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Fix TypeError: argv.unshit is not a function #104

Merged
merged 1 commit into from
Jan 26, 2018

Conversation

codepuzzle
Copy link
Contributor

Fixes typo throwing an error on passing args via CLI:

bin/scp2 -p=51723 foo bar ⏎
/Users/anton/Code/cloned/node-scp2/bin/scp2:20
argv.unshit(args.slice(1).join('='));
^

TypeError: argv.unshit is not a function
at getArg (/Users/anton/Code/cloned/node-scp2/bin/scp2:20:12)
at main (/Users/anton/Code/cloned/node-scp2/bin/scp2:28:11)
at Object. (/Users/anton/Code/cloned/node-scp2/bin/scp2:7:1)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:974:3

@lepture lepture merged commit 0bf6706 into spmjs:master Jan 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants