Skip to content

Matrix expansion drops help= and doesn't interpolate {AXIS} in help #26

@JPHutchins

Description

@JPHutchins

When a task carries matrix=, expansion rebuilds the nodes without their help text, and {AXIS} placeholders inside help are never substituted (unlike cmd/env/cwd/name, which are).

Why

In src/camas/core/matrix.py:

  • specialize_task constructs Task(cmd=..., name=..., env=..., cwd=...) — no help.
  • specialize_node reconstructs Sequential(...) / Parallel(...) with name/cwd only — no help.
  • substitute_in_str is applied to cmd/env/cwd/name but not help.

Impact

Minor/cosmetic: camas <task> --help still shows help (pre-expansion), but the expanded per-cell tree drops it, and {AXIS}-templated help (e.g. help="build {FLAG}") is never interpolated.

Suggestion

Carry help through specialize_task/specialize_node, running it through substitute_in_str the same way name is.

Found while evaluating camas — added help= to a matrix task and noticed it isn't templated like the command is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions