Initialize portable humanoid RL framework with licenses, locks and CI
Core and layout checks / core (push) Has been cancelled

This commit is contained in:
2026-11-03 19:46:08 +08:00
commit 7e1ff58b46
436 changed files with 64144 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
"""Shared helpers for CLI entrypoints."""
import sys
def maybe_print_top_level_help(prog: str) -> None:
"""Print a top-level usage message and exit if argv is bare -h/--help.
The ``train`` and ``play`` entrypoints use a two-stage tyro parse with
``add_help=False`` on the first stage, so ``prog --help`` otherwise
produces no output. This handles that case explicitly.
"""
if len(sys.argv) >= 2 and sys.argv[1] in ("-h", "--help"):
print(f"usage: {prog} <TASK> [OPTIONS]")
print()
print(f"Run '{prog} <TASK> --help' for task-specific options.")
print("Run 'uv run list-envs' to list available tasks.")
sys.exit(0)