Added file method for cli
Merge pull request #3 from Strech/master

Added file method for cli