X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/2471b9256d9d9dfea1124d20072201693b9b0865..2c5041cfa0e5645275504c070ef7d0ca5609752f:/src/black/__init__.py diff --git a/src/black/__init__.py b/src/black/__init__.py index d4c6e62..930f2cb 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -471,7 +471,7 @@ def target_version_option_callback( ), is_eager=True, callback=read_pyproject_toml, - help="Read configuration from PATH.", + help="Read configuration from FILE path.", ) @click.pass_context def main( @@ -5834,7 +5834,7 @@ def find_project_root(srcs: Iterable[str]) -> Path: if not srcs: return Path("/").resolve() - path_srcs = [Path(src).resolve() for src in srcs] + path_srcs = [Path(Path.cwd(), src).resolve() for src in srcs] # A list of lists of parents for each 'src'. 'src' is included as a # "parent" of itself if it is a directory