Flag terminator

Changes made: 

1. Added Type() to the tests. 
2. removed parseLongArgs and parseShortArgs functions and replaced them with the parseArgs function from  `ogier/pflag`
3. Changed test case to make it pass with the new function that was added above. 

This is in response to the issue : `https://github.com/spf13/cobra/issues/17`. 

Thanks!