From 90f52def0b9adf5e2e5a315b5bf529f2b750f5a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Fri, 13 May 2022 11:00:16 +0200 Subject: [PATCH] Fix list-codepends boolean flags Since the transitive and include_select flags of list-codepends are enabled by default, we need a way to disable them. --- docs/cli.md | 4 ++-- news/28.bugfix | 2 ++ src/manifestoo/main.py | 2 -- 3 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 news/28.bugfix diff --git a/docs/cli.md b/docs/cli.md index ed7772e..f7b9eda 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -111,8 +111,8 @@ $ manifestoo list-codepends [OPTIONS] **Options**: * `--separator TEXT`: Separator character to use (by default, print one item per line). -* `--transitive`: Print all transitive co-dependencies. [default: True] -* `--include-selected`: Print the selected addons along with their co-dependencies. [default: True] +* `--transitive / --no-transitive`: Print all transitive co-dependencies. [default: True] +* `--include-selected / --no-include-selected`: Print the selected addons along with their co-dependencies. [default: True] * `--help`: Show this message and exit. ## `manifestoo list-depends` diff --git a/news/28.bugfix b/news/28.bugfix new file mode 100644 index 0000000..057ee9e --- /dev/null +++ b/news/28.bugfix @@ -0,0 +1,2 @@ +Add ``--no-transitive`` and ``--no-include-selected`` options to the ``list-codepends`` +so the default values can be switched off. diff --git a/src/manifestoo/main.py b/src/manifestoo/main.py index 15266ff..2355d86 100644 --- a/src/manifestoo/main.py +++ b/src/manifestoo/main.py @@ -263,12 +263,10 @@ def list_codepends( ), transitive: bool = typer.Option( True, - "--transitive", help="Print all transitive co-dependencies.", ), include_selected: bool = typer.Option( True, - "--include-selected", help="Print the selected addons along with their co-dependencies.", ), ) -> None: