Skip to content

Commit bd3b660

Browse files
committed
Allow passing parent to command_group
Fixes #16 Signed-off-by: Pedro Algarvio <[email protected]>
1 parent dd229b9 commit bd3b660

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

changelog/16.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Allow passing `parent` to `command_group`

src/ptscripts/parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,9 @@ def command_group(
547547
help: str,
548548
description: str | None = None,
549549
venv_config: VirtualEnvConfig | None = None,
550+
parent: CommandGroup | None = None,
550551
) -> CommandGroup:
551552
"""
552553
Create a new command group.
553554
"""
554-
return CommandGroup(name, help, description=description, venv_config=venv_config)
555+
return CommandGroup(name, help, description=description, venv_config=venv_config, parent=parent)

0 commit comments

Comments
 (0)