@@ -34,7 +34,7 @@ const INTERNAL_ERROR_MSG: &'static str = "Fatal internal error. Please consider
34
34
/// order (so long as `.get_matches()` is the last method called).
35
35
///
36
36
///
37
- /// # Example
37
+ /// # Examples
38
38
///
39
39
/// ```no_run
40
40
/// # use clap::{App, Arg};
@@ -108,7 +108,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
108
108
/// information. The name should not contain spaces (hyphens '-' are ok).
109
109
///
110
110
///
111
- /// # Example
111
+ /// # Examples
112
112
///
113
113
/// ```no_run
114
114
/// # use clap::{App, Arg};
@@ -167,7 +167,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
167
167
/// YAML file (relative to the current file, like modules work). That YAML object can then be
168
168
/// passed to this function.
169
169
///
170
- /// # Example
170
+ /// # Examples
171
171
///
172
172
/// ```ignore
173
173
/// # use clap::App;
@@ -247,7 +247,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
247
247
/// Sets a string of author(s) and will be displayed to the user when they request the help
248
248
/// information with `--help` or `-h`.
249
249
///
250
- /// # Example
250
+ /// # Examples
251
251
///
252
252
/// ```no_run
253
253
/// # use clap::{App, Arg};
@@ -268,7 +268,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
268
268
///
269
269
/// **NOTE:** This command **should not** be used for SubCommands.
270
270
///
271
- /// # Example
271
+ /// # Examples
272
272
///
273
273
/// ```no_run
274
274
/// # use clap::{App, Arg};
@@ -286,7 +286,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
286
286
/// Sets a string briefly describing what the program does and will be displayed when
287
287
/// displaying help information.
288
288
///
289
- /// # Example
289
+ /// # Examples
290
290
///
291
291
/// ```no_run
292
292
/// # use clap::{App, Arg};
@@ -306,7 +306,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
306
306
/// information. This additional help is often used to describe how to use the arguments,
307
307
/// or caveats to be noted.
308
308
///
309
- /// # Example
309
+ /// # Examples
310
310
///
311
311
/// ```no_run
312
312
/// # use clap::App;
@@ -330,7 +330,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
330
330
///
331
331
/// **NOTE:** This defaults to false (using subcommand does *not* negate requirements)
332
332
///
333
- /// # Example
333
+ /// # Examples
334
334
///
335
335
/// ```no_run
336
336
/// # use clap::App;
@@ -352,7 +352,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
352
352
///
353
353
/// **NOTE:** This defaults to false (subcommands do *not* need to be present)
354
354
///
355
- /// # Example
355
+ /// # Examples
356
356
///
357
357
/// ```no_run
358
358
/// # use clap::App;
@@ -370,7 +370,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
370
370
/// Sets a string of the version number to be displayed when displaying version or help
371
371
/// information.
372
372
///
373
- /// # Example
373
+ /// # Examples
374
374
///
375
375
/// ```no_run
376
376
/// # use clap::{App, Arg};
@@ -398,7 +398,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
398
398
/// showing the usage.
399
399
///
400
400
///
401
- /// # Example
401
+ /// # Examples
402
402
///
403
403
/// ```no_run
404
404
/// # use clap::{App, Arg};
@@ -425,7 +425,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
425
425
/// specify a `.help()` for them as well.
426
426
///
427
427
///
428
- /// # Example
428
+ /// # Examples
429
429
///
430
430
/// ```no_run
431
431
/// # use clap::{App, Arg};
@@ -462,7 +462,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
462
462
/// non `-` chacter will be used as the `short` version
463
463
///
464
464
///
465
- /// # Example
465
+ /// # Examples
466
466
///
467
467
/// ```no_run
468
468
/// # use clap::{App, Arg};
@@ -487,7 +487,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
487
487
/// non `-` chacter will be used as the `short` version
488
488
///
489
489
///
490
- /// # Example
490
+ /// # Examples
491
491
///
492
492
/// ```no_run
493
493
/// # use clap::{App, Arg};
@@ -512,7 +512,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
512
512
///
513
513
/// **NOTE:** Subcommands count as arguments
514
514
///
515
- /// # Example
515
+ /// # Examples
516
516
///
517
517
/// ```no_run
518
518
/// # use clap::{App, Arg};
@@ -531,7 +531,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
531
531
///
532
532
/// **NOTE:** This does **not** hide the subcommand from usage strings on error
533
533
///
534
- /// # Example
534
+ /// # Examples
535
535
///
536
536
/// ```no_run
537
537
/// # use clap::{App, SubCommand};
@@ -556,7 +556,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
556
556
/// **NOTE:** The version for the current command and this setting must be set **prior** to
557
557
/// adding any subcommands
558
558
///
559
- /// # Example
559
+ /// # Examples
560
560
///
561
561
/// ```no_run
562
562
/// # use clap::{App, Arg, SubCommand};
@@ -585,7 +585,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
585
585
///
586
586
/// **NOTE:** Do not set this value to false, it will have undesired results!
587
587
///
588
- /// # Example
588
+ /// # Examples
589
589
///
590
590
/// ```no_run
591
591
/// # use clap::{App, Arg, SubCommand};
@@ -612,7 +612,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
612
612
///
613
613
/// **NOTE:** This setting is cosmetic only and does not affect any functionality.
614
614
///
615
- /// # Example
615
+ /// # Examples
616
616
///
617
617
/// ```no_run
618
618
/// # use clap::{App, Arg, SubCommand};
@@ -643,7 +643,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
643
643
/// behavior for all subcommands, you must set this on each command (needing this is extremely
644
644
/// rare)
645
645
///
646
- /// # Example
646
+ /// # Examples
647
647
///
648
648
/// ```no_run
649
649
/// # use clap::{App, Arg};
@@ -671,7 +671,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
671
671
/// still be displayed and exit. If this is *not* the desired result, consider using
672
672
/// `.arg_required_else_help()`
673
673
///
674
- /// # Example
674
+ /// # Examples
675
675
///
676
676
/// ```no_run
677
677
/// # use clap::{App, Arg};
@@ -688,7 +688,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
688
688
689
689
/// Enables Application level settings, passed as argument
690
690
///
691
- /// # Example
691
+ /// # Examples
692
692
///
693
693
/// ```no_run
694
694
/// # use clap::{App, Arg, AppSettings};
@@ -721,7 +721,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
721
721
722
722
/// Enables multiple Application level settings, passed as argument
723
723
///
724
- /// # Example
724
+ /// # Examples
725
725
///
726
726
/// ```no_run
727
727
/// # use clap::{App, Arg, AppSettings};
@@ -748,7 +748,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
748
748
/// one at a time. Using `Arg::from_usage` helps with the verbosity, and still allows full
749
749
/// control over the advanced configuration options.
750
750
///
751
- /// # Example
751
+ /// # Examples
752
752
///
753
753
/// ```no_run
754
754
/// # use clap::{App, Arg};
@@ -1068,7 +1068,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
1068
1068
/// Adds multiple arguments to the list of valid possibilties by iterating over a Vec of Args
1069
1069
///
1070
1070
///
1071
- /// # Example
1071
+ /// # Examples
1072
1072
///
1073
1073
/// ```no_run
1074
1074
/// # use clap::{App, Arg};
@@ -1096,7 +1096,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
1096
1096
/// `Arg` other than what `Arg::from_usage()` supports.
1097
1097
///
1098
1098
///
1099
- /// # Example
1099
+ /// # Examples
1100
1100
///
1101
1101
/// ```no_run
1102
1102
/// # use clap::{App, Arg};
@@ -1120,7 +1120,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
1120
1120
/// options.
1121
1121
///
1122
1122
///
1123
- /// # Example
1123
+ /// # Examples
1124
1124
///
1125
1125
/// ```no_run
1126
1126
/// # use clap::{App, Arg};
@@ -1160,7 +1160,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
1160
1160
/// group
1161
1161
///
1162
1162
///
1163
- /// # Example
1163
+ /// # Examples
1164
1164
///
1165
1165
/// ```no_run
1166
1166
/// # use clap::{App, ArgGroup};
@@ -1224,7 +1224,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
1224
1224
/// group
1225
1225
///
1226
1226
///
1227
- /// # Example
1227
+ /// # Examples
1228
1228
///
1229
1229
/// ```no_run
1230
1230
/// # use clap::{App, ArgGroup};
@@ -1252,7 +1252,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
1252
1252
/// usage.
1253
1253
///
1254
1254
///
1255
- /// # Example
1255
+ /// # Examples
1256
1256
///
1257
1257
/// ```no_run
1258
1258
/// # use clap::{App, Arg, SubCommand};
@@ -1282,7 +1282,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
1282
1282
/// Adds multiple subcommands to the list of valid possibilties by iterating over a Vec of
1283
1283
/// `SubCommand`s
1284
1284
///
1285
- /// # Example
1285
+ /// # Examples
1286
1286
///
1287
1287
/// ```no_run
1288
1288
/// # use clap::{App, Arg, SubCommand};
@@ -1575,7 +1575,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
1575
1575
1576
1576
/// Prints the full help message to `io::stdout()` using a `BufWriter`
1577
1577
///
1578
- /// # Examples
1578
+ /// # Exampless
1579
1579
/// ```no_run
1580
1580
/// # use clap::App;
1581
1581
/// # use std::io;
@@ -1886,7 +1886,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
1886
1886
/// If any arguments contain invalid unicode characters. If this is not desired it is
1887
1887
/// recommended to use the `*_safe()` or `*_lossy()` versions of this method.
1888
1888
///
1889
- /// # Example
1889
+ /// # Examples
1890
1890
///
1891
1891
/// ```no_run
1892
1892
/// # use clap::{App, Arg};
@@ -1903,7 +1903,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
1903
1903
/// the real parsing function for all subcommands. Invalid unicode characters are replaced with
1904
1904
/// `U+FFFD REPLACEMENT CHARACTER`
1905
1905
///
1906
- /// # Examples
1906
+ /// # Exampless
1907
1907
///
1908
1908
/// ```no_run
1909
1909
/// # use clap::{App, Arg};
@@ -1923,7 +1923,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
1923
1923
/// manually.
1924
1924
///
1925
1925
///
1926
- /// # Example
1926
+ /// # Examples
1927
1927
///
1928
1928
/// ```no_run
1929
1929
/// # use clap::{App, Arg};
@@ -1945,7 +1945,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
1945
1945
/// manually.
1946
1946
///
1947
1947
///
1948
- /// # Example
1948
+ /// # Examples
1949
1949
///
1950
1950
/// ```no_run
1951
1951
/// # use clap::{App, Arg};
@@ -1969,7 +1969,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
1969
1969
/// `App::get_matches()`
1970
1970
///
1971
1971
///
1972
- /// # Example
1972
+ /// # Examples
1973
1973
///
1974
1974
/// ```no_run
1975
1975
/// # use clap::{App, Arg};
@@ -2010,7 +2010,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
2010
2010
/// `App::get_matches()`
2011
2011
///
2012
2012
///
2013
- /// # Example
2013
+ /// # Examples
2014
2014
///
2015
2015
/// ```no_run
2016
2016
/// # use clap::{App, Arg};
@@ -2056,7 +2056,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
2056
2056
/// `ClapErrorType::InvalidUnicode`
2057
2057
///
2058
2058
///
2059
- /// # Example
2059
+ /// # Examples
2060
2060
///
2061
2061
/// ```no_run
2062
2062
/// # use clap::{App, Arg};
@@ -2089,7 +2089,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
2089
2089
/// manually.
2090
2090
///
2091
2091
///
2092
- /// # Example
2092
+ /// # Examples
2093
2093
///
2094
2094
/// ```no_run
2095
2095
/// # use clap::{App, Arg};
@@ -2163,7 +2163,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
2163
2163
/// **NOTE:** Invalid unicode characters will result in an `Err` with type
2164
2164
/// `ClapErrorType::InvalidUnicode`
2165
2165
///
2166
- /// # Example
2166
+ /// # Examples
2167
2167
///
2168
2168
/// ```no_run
2169
2169
/// # use clap::{App, Arg};
@@ -2198,7 +2198,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
2198
2198
/// **NOTE:** Invalid unicode characters will result in an `Err` with type
2199
2199
/// `ClapErrorType::InvalidUnicode`
2200
2200
///
2201
- /// # Example
2201
+ /// # Examples
2202
2202
///
2203
2203
/// ```no_run
2204
2204
/// # use clap::{App, Arg};
0 commit comments