Skip to content

Commit 3b2522e

Browse files
Fix output
1 parent 9a89644 commit 3b2522e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cli.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,11 @@ def cmd_cleanup(
128128
typer.echo(f"Total entities {'to delete' if dry_run else 'deleted'}: {deleted_sum}")
129129

130130
if __name__ == "__main__":
131+
import sys
132+
133+
# If invoked with no subcommand/arguments, show help (list available commands/options)
134+
if len(sys.argv) == 1:
135+
# append --help so Typer/Click prints the global help instead of raising Missing command
136+
sys.argv.append("--help")
137+
131138
app()

0 commit comments

Comments
 (0)