Skip to content

Fix --config-file parser broken by configargparse 1.7.3 - #138

Merged
henrikingo merged 1 commit into
masterfrom
fix-config-file
Mar 29, 2026
Merged

henrikingo merged 1 commit into
masterfrom
fix-config-file

Conversation

@Gerrrr

@Gerrrr Gerrrr commented Mar 11, 2026 •

Copy link
Copy Markdown
Contributor

This PR fixes broken CI on master. configargparse 1.7.3 changed how env var args are inserted into the arg list, causing OTAVA_CONFIG env var expansion to land after the subcommand positional arg. The subparser then rejects --config-file as unrecognized.

The fix is to add --config-file to the parent subparser.

These changes in e2e tests look annoying, but they did catch a real bug on master.

configargparse 1.7.3 changed how env var args are inserted into the arg
list, causing `OTAVA_CONFIG` env var expansion to land after the
subcommand positional arg. The subparser then rejects `--config-file`
as unrecognized.

The fix is to add `--config-file` to the parent subparser.
@Gerrrr
Gerrrr marked this pull request as ready for review March 11, 2026 07:56
@henrikingo
henrikingo merged commit d11bdea into master Mar 29, 2026
6 checks passed
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.

2 participants