Skip to content

docs(cli): enrich describe/invoke help text with routing examples - #89

Merged
sankalps0549 merged 2 commits into
release/27from
shrivas/cli-help-text-enrichment
Sep 28, 2026
Merged

sankalps0549 merged 2 commits into
release/27from
shrivas/cli-help-text-enrichment

Conversation

@sankalps0549

Copy link
Copy Markdown
Collaborator

Summary

  • Enriches the describe/invoke CLI commands' --help text with worked examples of the dotted-target and chained-parameter routing syntax (synergy.new_project, find_plot_by_name.plot_name, step.param.attr=value).
  • This same enrichment was already required internally (Autodesk's internal/release/27, tracked as IM-14865/PR #192) to keep CI green there; without landing it here too, the next inward-sync PR reverts it every cycle.
  • Hardens test_help_and_describe_show_snake_case_targets and test_invoke_help_shows_arg_syntax against environment-dependent flakiness (locale leakage from other tests, narrow detected terminal width) that was masking the real assertions on CI.

Test plan

  • pytest tests/api/unit_tests/test_cli_describe.py tests/api/unit_tests/test_cli_invoke_parse.py — 110 passed locally.

sankalps0549 and others added 2 commits September 28, 2026 09:22
Add worked examples (synergy.new_project, find_plot_by_name.plot_name,
step.param.attr=value routing) to the describe/invoke command help so
users discover the CLI's dotted-target and chained-parameter syntax
directly from --help, without needing external docs.

Also harden the two tests asserting on this help text against
environment-dependent flakiness: force English locale and a wide
terminal width before invoking, since Rich/Click help rendering can
otherwise omit or blank argument descriptions depending on the active
gettext locale and detected console width.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
release/27 is not taking further changes; the Unreleased section had
been all-N/A placeholders with nothing pending, and its presence was
contributing to confusing sync-triggered diffs against downstream forks.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@sankalps0549
sankalps0549 merged commit de2e808 into release/27 Sep 28, 2026
23 checks passed
@sankalps0549
sankalps0549 deleted the shrivas/cli-help-text-enrichment branch September 28, 2026 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant