From f4508cbfc3ee22ff3c5e5b4c2e03f65217e6ea20 Mon Sep 17 00:00:00 2001 From: Adam Lewis <23342526+Adam-D-Lewis@users.noreply.github.com> Date: Tue, 4 Jun 2024 15:59:06 -0500 Subject: [PATCH] convert verbose from bool to count --- src/_nebari/subcommands/init.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/_nebari/subcommands/init.py b/src/_nebari/subcommands/init.py index c12513d9e9..3aa86a497c 100644 --- a/src/_nebari/subcommands/init.py +++ b/src/_nebari/subcommands/init.py @@ -106,7 +106,7 @@ class InitInputs(schema.Base): ssl_cert_email: Optional[schema.email_pydantic] = None disable_prompt: bool = False output: pathlib.Path = pathlib.Path("nebari-config.yaml") - verbose: bool = False + verbose: int = 0 def enum_to_list(enum_cls): @@ -566,10 +566,11 @@ def init( "-o", help="Output file path for the rendered config file.", ), - verbose: bool = typer.Option( + verbose: int = typer.Option( False, "--verbose", "-v", + count=True, help="Write verbose nebari config file.", ), ):