From 9e32ec9f8cf602a218c88d4a527c40f910b5e3ba Mon Sep 17 00:00:00 2001 From: Kemal Zebari <60799661+kemzeb@users.noreply.github.com> Date: Tue, 1 Aug 2023 18:26:08 -0700 Subject: [PATCH] Add missing `user_only` field in `Options` (#275) Found this while exploring the code. The absence of this field doesn't affect the runtime since the `cast()` call in `get_options()` exists more-or-less to provide information to the type checker. --- src/pipdeptree/_cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pipdeptree/_cli.py b/src/pipdeptree/_cli.py index 1224902..9dd1d37 100644 --- a/src/pipdeptree/_cli.py +++ b/src/pipdeptree/_cli.py @@ -15,6 +15,7 @@ class Options(Namespace): python: str all: bool # noqa: A003 local_only: bool + user_only: bool warn: Literal["silence", "suppress", "fail"] reverse: bool packages: str