Open adamgranthendry opened 2 years ago
I'm not sure if this a bug or a design choice.
Many configuration files (e.g. .pylintrc
) also only work when they're present at the right level.
Would it help if the error message can indicate if you're in the wrong directory?
I've hit this many times myself and when training new developers to use bumpversion. I'd say "YES", a better error message telling me that a higher level has a .bumpversion.cfg
would be reduce confusion!
That's my 2 cents.
In a "typical" project directory structure:
bumpversion
will incorrectly tell the user that--new-project
is required if runningbumpversion
from a subdirectory of the top-level directory:but works perfectly well when run from the top-level directory where
.bumpversion.cfg
is visible.