Skip to content

Commit 83044c5

Browse files
committed
update cli to be invoked without command
1 parent f3d6029 commit 83044c5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ wheels/
2424
arial.ttf
2525
# Virtual Environment
2626
venv/
27+
bin/
2728
env/
2829
ENV/
2930
assets/

src/zuffer/cli.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
from .commands import embed
55
from .commands import welcome, list
66

7-
@click.group()
7+
@click.group(invoke_without_command=True)
88
@click.version_option(package_name="zuffer")
9-
def main():
9+
@click.pass_context
10+
def main(ctx: click.Context):
1011
"""Zuffer CLI - Discord Server Management Tool"""
11-
pass
12+
if ctx.invoked_subcommand is None:
13+
click.echo(ctx.get_help())
14+
ctx.exit(0)
1215

1316

1417
main.add_command(login.login)

0 commit comments

Comments
 (0)