File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ impl ArgMatches {
138
138
/// [`ArgMatches::values_of`]: ArgMatches::values_of()
139
139
/// [`default_value`]: crate::Arg::default_value()
140
140
/// [`occurrences_of`]: crate::ArgMatches::occurrences_of()
141
+ #[ cfg_attr( debug_assertions, track_caller) ]
141
142
pub fn value_of < T : Key > ( & self , id : T ) -> Option < & str > {
142
143
let id = Id :: from ( id) ;
143
144
let arg = self . get_arg ( & id) ?;
@@ -277,6 +278,7 @@ impl ArgMatches {
277
278
/// ```
278
279
/// [values]: Values
279
280
/// [`Iterator`]: std::iter::Iterator
281
+ #[ cfg_attr( debug_assertions, track_caller) ]
280
282
pub fn values_of < T : Key > ( & self , id : T ) -> Option < Values > {
281
283
let id = Id :: from ( id) ;
282
284
let arg = self . get_arg ( & id) ?;
@@ -293,6 +295,7 @@ impl ArgMatches {
293
295
294
296
/// Placeholder documentation.
295
297
#[ cfg( feature = "unstable-grouped" ) ]
298
+ #[ cfg_attr( debug_assertions, track_caller) ]
296
299
pub fn grouped_values_of < T : Key > ( & self , id : T ) -> Option < GroupedValues > {
297
300
let id = Id :: from ( id) ;
298
301
let arg = self . get_arg ( & id) ?;
You can’t perform that action at this time.
0 commit comments