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