-
Notifications
You must be signed in to change notification settings - Fork 120
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(zebrad): accept default subcommand arguments and print consistent usage information for top-level 'help' subcommand #6801
Conversation
Adds -V to process_cli_args match case
I opened this PR in case other reviewers wanted a smaller diff for |
Co-authored-by: teor <teor@riseup.net>
This reverts commit 3f73979.
Co-authored-by: teor <teor@riseup.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be working well enough for now.
In the merge queue:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conditional approval: if we see any memory errors in the zebrad lib tests, we should revert this PR.
* Bump semvers * Update zebra-utils/README.md * Updated mainnet checkpoints against commit b7029b8 * Add testnet checkpoints from b7029b8 * Bump zebrad rust-version to 1.70 * rust-version 1.68 Co-authored-by: teor <teor@riseup.net> * Add CHANGELOG for 1.0.0-rc.9 * Bump estimated release height to within june 7th 2023 utc-4 * Add #6801 to CHANGELOG in anticipation * Update CHANGELOG.md Co-authored-by: teor <teor@riseup.net> * Update CHANGELOG.md Co-authored-by: teor <teor@riseup.net> * Update CHANGELOG.md Co-authored-by: teor <teor@riseup.net> * Update CHANGELOG.md Co-authored-by: teor <teor@riseup.net> * Update CHANGELOG.md Co-authored-by: teor <teor@riseup.net> * Update breaking changes in 1.0.0-rc.9 changelog * changelog: move #6801 to Fix * Update CHANGELOG.md Co-authored-by: teor <teor@riseup.net> * Include #6832 in the changelog * Add missing changes to changelog * Remove #6801 from known issues in the README * Use the latest bug template link --------- Co-authored-by: teor <teor@riseup.net>
Motivation
This PR is needed to avoid a compilation error that is likely to be added to the Rust 2024 edition, to make our dependency tree smaller.
Related: This makes the output of
zebrad --help
consistent with that ofzebrad help
.Closes #5502
Closes #5707
Closes #5624
Breaking Changes
Major
version
subcommand has been replaced with a--version
/-V
flagMinor
--version
flagSolution
abscissa_core
from 0.5 to 0.7.0 inzebrad/Cargo.toml
ZebradApp
's impl ofApplication
to match new method signaturesclap::Parser
instead ofgumdrop::Options
ColorChoice::Never
when initializing the updatedTerminal
component to avoid panicking whencolor_spantrace::set_theme()
is called after it's been setEntryPoint::process_cli_args()
method for inserting the default subcommand if one is not providedEntryPoint
from the application module to commands now that it's been excluded fromabscissa_core
Review
Anyone can review.
Reviewer Checklist
Follow Up Work