Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

Do not check subcommands for moved flags #225

Merged
merged 1 commit into from
Jan 6, 2018

Conversation

hjr3
Copy link
Contributor

@hjr3 hjr3 commented Jan 6, 2018

In b864a9e, the check for moved flags was using is_present which
checks flags in subcommands. This caused a lot of false positives.
Instead, look at the args at the top level only and check if the flag
exists there.

@hjr3
Copy link
Contributor Author

hjr3 commented Jan 6, 2018

This will fail CI until #224 is merged

In b864a9e, the check for moved flags was using `is_present` which
checks flags in subcommands. This caused a lot of false positives.
Instead, look at the args at the top level only and check if the flag
exists there.
@hjr3
Copy link
Contributor Author

hjr3 commented Jan 6, 2018

Rebased and passing CI now.

Copy link
Owner

@steveklabnik steveklabnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@steveklabnik steveklabnik merged commit 87a9e02 into steveklabnik:master Jan 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants