mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 15:27:16 +00:00
fix: Deprecation warnings
This commit is contained in:
parent
97e36451cf
commit
1e4ec5f4f0
2 changed files with 3 additions and 3 deletions
|
@ -172,7 +172,7 @@ fn option_details_for_path(app: &App, path: &str) -> String {
|
|||
}
|
||||
|
||||
fn vals_for(o: &Arg) -> String {
|
||||
debug!("vals_for: o={}", o.get_name());
|
||||
debug!("vals_for: o={}", o.get_id());
|
||||
|
||||
if let Some(vals) = o.get_possible_values() {
|
||||
format!(
|
||||
|
|
|
@ -442,7 +442,7 @@ fn write_opts_of(p: &App, p_global: Option<&App>) -> String {
|
|||
let mut ret = vec![];
|
||||
|
||||
for o in p.get_opts() {
|
||||
debug!("write_opts_of:iter: o={}", o.get_name());
|
||||
debug!("write_opts_of:iter: o={}", o.get_id());
|
||||
|
||||
let help = o.get_help().map_or(String::new(), escape_help);
|
||||
let conflicts = arg_conflicts(p, o, p_global);
|
||||
|
@ -626,7 +626,7 @@ fn write_positionals_of(p: &App) -> String {
|
|||
let mut ret = vec![];
|
||||
|
||||
for arg in p.get_positionals() {
|
||||
debug!("write_positionals_of:iter: arg={}", arg.get_name());
|
||||
debug!("write_positionals_of:iter: arg={}", arg.get_id());
|
||||
|
||||
let cardinality = if arg.is_multiple_values_set() || arg.is_multiple_occurrences_set() {
|
||||
"*:"
|
||||
|
|
Loading…
Add table
Reference in a new issue