Skip to content

Commit e2d0e5f

Browse files
committed
feat(ui/app): improve CLI help with detailed command descriptions in help output
1 parent 87eb270 commit e2d0e5f

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

codetide/agents/tide/ui/app.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,23 @@ def serve(
448448

449449

450450
def main():
451-
parser = argparse.ArgumentParser(description="Launch the Tide UI server.")
451+
parser = argparse.ArgumentParser(
452+
description="Launch the Tide UI server.",
453+
epilog=(
454+
"\nAvailable commands and what they do:\n"
455+
" --host Host to bind to (default: None)\n"
456+
" --port Port to bind to (default: 9753)\n"
457+
" --root-path Root path for the app (default: None)\n"
458+
" --ssl-certfile Path to SSL certificate file (default: None)\n"
459+
" --ssl-keyfile Path to SSL key file (default: None)\n"
460+
" --ws-per-message-deflate WebSocket per-message deflate (true/false, default: true)\n"
461+
" --ws-protocol WebSocket protocol (default: auto)\n"
462+
" --project-path Path to the project directory (default: ./)\n"
463+
" --config-path Path to the config file (default: .agent_tide_config.yml)\n"
464+
" -h, --help Show this help message and exit\n"
465+
),
466+
formatter_class=argparse.RawDescriptionHelpFormatter
467+
)
452468
parser.add_argument("--host", type=str, default=None, help="Host to bind to")
453469
parser.add_argument("--port", type=int, default=AGENT_TIDE_PORT, help="Port to bind to")
454470
parser.add_argument("--root-path", type=str, default=None, help="Root path for the app")

0 commit comments

Comments
 (0)