pub struct Namespace(/* private fields */);Expand description
The flag names one subcommand has already spent.
Requires the document feature.
PUT /vouchers/{id} takes an id in the path and an id in the body; clap
panics on a duplicate name, so the second claimant is prefixed rather than
dropped. Both values stay reachable from the command line, and the flag that
moved says which wire name it carries in its help line — renamed is how
a flag reports that once the document it came from is gone.
Implementations§
Source§impl Namespace
impl Namespace
Sourcepub fn with_reserved<'r>(reserved: impl IntoIterator<Item = &'r str>) -> Self
pub fn with_reserved<'r>(reserved: impl IntoIterator<Item = &'r str>) -> Self
Start with the CLI’s own flags already spent, so a document that happens
to name a field commit renames rather than colliding at startup.
The set is an iterator rather than a fixed list because part of it is a fact about one operation: the flags standing in front of that operation’s named gates are spent here too, before the document’s own names are claimed.