Skip to content

Conversation

@jirassimok
Copy link
Contributor

Right now, options provided with -o/--option are overridden by options in the config file. This is unintuitive and inconvenient.

This PR makes the argument-processing loop just collect the options, and then loads them in order after loading the file.

This resolves #62.

@moverest
Copy link
Owner

Right now, options provided with -o/--option are overridden by options in the config file. This is unintuitive and inconvenient.

Yeah, it's not just unintuitive, it's just wrong. Not sure why I did that and then failed to notice. 🤦

@moverest
Copy link
Owner

I think the original idea was to be able to chain configuration files so they and the overrides would be read in order and then I moved the file loading after parsing the command line arguments. Oh well.

@jirassimok
Copy link
Contributor Author

Freed the extra memory and rebased onto main.

@jirassimok jirassimok requested a review from moverest October 26, 2025 04:09
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.

passing config file to command overrides the chosen mode

2 participants