Please sign in to comment.
Move fpm version query behavior to `run` method.
A bug pointed out by #1162 showed that `fpm --version` would fail when a .fpm file was loaded. Moving the short `fpm --version` handling to the `run` method lets us do this check before we load FPMOPTS env or .fpm files. Updated the tests to only try calling with a lone `-v` or `--version` flag to verify this works with and without a .fpm file. Fixes #1162 and #1125. Original work by @drwl!
- Loading branch information...
Showing with 29 additions and 20 deletions.