diff --git a/docs/cli-reference.rst b/docs/cli-reference.rst index 68dc1d2..ece7193 100644 --- a/docs/cli-reference.rst +++ b/docs/cli-reference.rst @@ -1448,9 +1448,9 @@ See :ref:`cli_install`. Install packages from PyPI into the same environment as sqlite-utils Options: - -U, --upgrade Upgrade packages to latest version - -e, --editable DIRECTORY Install a project in editable mode from this path - -h, --help Show this message and exit. + -U, --upgrade Upgrade packages to latest version + -e, --editable TEXT Install a project in editable mode from this path + -h, --help Show this message and exit. .. _cli_ref_uninstall: diff --git a/sqlite_utils/cli.py b/sqlite_utils/cli.py index 00b3d6a..d5cdb7c 100644 --- a/sqlite_utils/cli.py +++ b/sqlite_utils/cli.py @@ -2800,7 +2800,6 @@ def _analyze(db, tables, columns, save, common_limit=10, no_most=False, no_least @click.option( "-e", "--editable", - type=click.Path(readable=True, exists=True, dir_okay=True, file_okay=False), help="Install a project in editable mode from this path", ) def install(packages, upgrade, editable): @@ -2809,7 +2808,7 @@ def install(packages, upgrade, editable): if upgrade: args += ["--upgrade"] if editable: - args += ["--editable", str(editable)] + args += ["--editable", editable] args += list(packages) sys.argv = args run_module("pip", run_name="__main__")