support --dir and --extension in `pulls`
Merge pull request #145 from erikh/dir_and_extension

support --dir and --extension in `pulls`