Repository navigation
Show defaults in rfl::cli::usage - #35
Open
clockblocker wants to merge 1 commit into
Open
clockblocker wants to merge 1 commit into
clockblocker wants to merge 1 commit into
Conversation
clockblocker
force-pushed
the
wave-base-6
branch
from
November 15, 2026 08:21
c7718dc to
7b313c1
Compare
clockblocker
force-pushed
the
cli-usage-defaults
branch
from
November 15, 2026 08:21
960a0ab to
2f4fc2e
Compare
clockblocker
force-pushed
the
wave-base-6
branch
from
November 16, 2026 05:18
7b313c1 to
d3aff9d
Compare
clockblocker
force-pushed
the
cli-usage-defaults
branch
2 times, most recently
from
November 17, 2026 04:18
049151c to
ce84e34
Compare
clockblocker
force-pushed
the
wave-base-6
branch
from
November 17, 2026 04:18
d3aff9d to
38e2ec4
Compare
clockblocker
force-pushed
the
cli-usage-defaults
branch
2 times, most recently
from
November 17, 2026 07:15
37ee897 to
385e359
Compare
clockblocker
force-pushed
the
wave-base-6
branch
from
November 17, 2026 07:15
1a246ec to
6e0ec5c
Compare
The detailed help of rfl::cli::usage now also lists the default of each
argument: of rfl::DefaultVal fields, or of every field with
rfl::DefaultIfMissing, when T{} can be built. The usage line does not
change.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
clockblocker
force-pushed
the
wave-base-6
branch
from
November 17, 2026 09:27
6e0ec5c to
81b7aeb
Compare
clockblocker
force-pushed
the
cli-usage-defaults
branch
from
November 17, 2026 09:27
385e359 to
0711c46
Compare
This was referenced Nov 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends
rfl::cli::usage(..., /*detailed=*/true)to appendDefault: <value>.to rows that have a default viarfl::DefaultValorrfl::DefaultIfMissing.Example
Key details
T{}can be constructed (matching whenreaduses defaults); non-scalar defaults (null, objects, empty lists) are omitted.cli.md.Open question: is
Default: <value>.welcome in detailedusage, or shouldusagestay strictly to description, choices, andRequired.?AI-authored. Depends on: #23.