Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix NoMethodError when passing invalid path to --collection
Before: ```console $ bundle exec exe/typeprof smoke/simple.rb --collection=foo.yml bundler: failed to load command: exe/typeprof (exe/typeprof) /.../typeprof/lib/typeprof/cli.rb:108:in `parse': undefined method `exist?' for "foo.yml":String (NoMethodError) if !no_collection && (collection_path && !collection_path.exist?) ^^^^^^^ ``` After: ```console $ bundle exec exe/typeprof smoke/simple.rb --collection=foo.yml invalid option: collection path not found (foo.yml) $ bundle exec exe/typeprof smoke/simple.rb --collection=foo.yml --no-collection # TypeProf 0.21.7 ... ```
- Loading branch information