Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix specifying a spec in the cli args #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SimonWoolf
Copy link

The custom spec wasn't getting the 'prefer-other' semantics of CFG#merge, so any spec specified by --specification in the args was getting ignored in favour of the default value of "Spec" from the base cfg.

Fixed by leaving it as None by default and merging as other.spec or self.spec, moving the "Spec" fallback to the last possible moment (format_cfg)

The custom spec wasn't getting the 'prefer-other' semantics of
CFG#merge, so any spec specified by `--specification` in the args was
getting ignored in favour of the default value of "Spec" from the base
cfg.

Fixed by leaving it as None by default and merging as `other.spec or
self.spec`, moving the "Spec" fallback to the last possible moment
(format_cfg)
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