fix segment fault when connect command is executed with less than 2 arguments.
Merge pull request #1 from sosxisang/patch-1

fix segment fault when connect command is executed with less than 2 args.