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

Update to clap v4 #68

Merged
merged 2 commits into from Nov 18, 2022
Merged

Update to clap v4 #68

merged 2 commits into from Nov 18, 2022

Conversation

dburgener
Copy link
Owner

I was expecting this to be much more difficult than it turned out to be. Back when 3.2.2 first was released, we hit a bunch of warnings, as described in this clap issue: clap-rs/clap#3822. Clap moved those warnings behind the "deprecated" feature flag in v3.2.3. I was expecting to need to address the warnings I saw when updating to clap 3.2.2 before updating to v4, however those warnings seem to no longer occur. Perhaps they were accidentally addressed as we generally updated our CLI based on online docs? Or perhaps something changed on the clap end?

Regardless, updating clap and clap_mangen in concert, and fixing the one _/- confusion in the commit seems to have everything working functionally as far as I can tell.

As a future note, the clap migrating instructions suggest using the "trycmd" crate to do cli testing. That could be a good future enhancement, but is more than I wanted to get into in this PR. Currently our testing focused on the cascade library calls, and casc automated testing is extremely minimal (first casc specific test is in this PR).

@dburgener dburgener merged commit 39c8864 into main Nov 18, 2022
@dburgener dburgener deleted the dburgener/clap-4-prep branch November 18, 2022 20:17
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.

None yet

2 participants