Skip to content

Commit 2e8e762

Browse files
committed
Adds the possibility to pass other arguments into Typer
1 parent 34a3f4f commit 2e8e762

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

devcli/framework/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
_logger = logging.getLogger()
1818

1919

20-
def new(description: str = None) -> typer.Typer:
20+
def new(description: str = None, **kwargs) -> typer.Typer:
2121
"""
2222
The base of starting a new dynamic command. It
2323
returns the basic Typer type for command declaration.
2424
:returns: a typer.Typer
2525
"""
2626
_logger.info(f"creating new command description:{description}")
27-
return typer.Typer(help=description, no_args_is_help=True, cls=OrderedGroup)
27+
return typer.Typer(help=description, no_args_is_help=True, cls=OrderedGroup, **kwargs)
2828

2929

3030
def stop(msg: str = "Error", exit_code: int = 1):

0 commit comments

Comments
 (0)