Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/agentspaces/cli/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
app = typer.Typer(
name="agentspaces",
help="Workspace orchestration tool for AI coding agents.",
no_args_is_help=True,
no_args_is_help=False,
context_settings={"help_option_names": ["-h", "--help"]},
)

Expand All @@ -30,8 +30,9 @@ def version_callback(value: bool) -> None:
raise typer.Exit()


@app.callback()
@app.callback(invoke_without_command=True)
def main(
ctx: typer.Context,
version: bool = typer.Option( # noqa: ARG001 - handled by callback
None,
"--version",
Expand All @@ -53,3 +54,7 @@ def main(
"""
# Configure logging (debug only when verbose)
configure_logging(debug=verbose)

# Launch TUI if no subcommand provided
if ctx.invoked_subcommand is None:
tui.main(ctx)