Skip to content

fix: tolerate option groups in "Missing: " errors - #3699

Merged
mkoura merged 1 commit into
masterfrom
missing_arg_group_markers
Sep 21, 2026
Merged

mkoura merged 1 commit into
masterfrom
missing_arg_group_markers

Conversation

@mkoura

@mkoura mkoura commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

cardano-cli renders empty option-group markers between the "Missing: " prefix and the missing option, e.g.

Missing:  ( )      (  )   --fee LOVELACE

ddf9ff4 replaced the .* in these patterns with +, which only matches spaces, so test_missing_fee and
test_build_missing_change_address stopped matching and failed.

Use [^\n]* instead: it keeps the variable-padding tolerance, accepts
the group markers, and stays anchored to the single "Missing: " line.

cardano-cli renders empty option-group markers between the
"Missing: " prefix and the missing option, e.g.

    Missing:  ( )      (  )   --fee LOVELACE

ddf9ff4 replaced the `.*` in these patterns with ` +`, which only
matches spaces, so `test_missing_fee` and
`test_build_missing_change_address` stopped matching and failed.

Use `[^\n]*` instead: it keeps the variable-padding tolerance, accepts
the group markers, and stays anchored to the single "Missing: " line.
@mkoura
mkoura requested a review from saratomaz as a code owner September 21, 2026 11:07
@mkoura
mkoura merged commit d10259d into master Sep 21, 2026
3 checks passed
@mkoura
mkoura deleted the missing_arg_group_markers branch September 21, 2026 11:16
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