Skip to content

Commit f642f37

Browse files
committed
click groups
1 parent 7d88fac commit f642f37

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

intro/create_a_command_line_parse/click_group.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,11 @@
88
def cli():
99
# * func acts as top level group
1010
pass
11+
12+
13+
@click.group(help='Spawn worker')
14+
def workers():
15+
worker_name = 'Main worker'
16+
17+
18+
cli.add_command(workers)

0 commit comments

Comments
 (0)