@@ -39,14 +39,14 @@ pub fn make_opt_cfgs_for<T: OptStore>(opt_store: &mut T) -> Vec<OptCfg> {
39
39
}
40
40
41
41
impl < ' b > Cmd < ' _ > {
42
- /// Parses command line arguments and set their option values to the option store which is
43
- /// passed as an argument.
42
+ /// Parses command line arguments and set their option values to the fields of the option store
43
+ /// which is passed as the argument of this method .
44
44
///
45
45
/// This method divides command line arguments to command arguments and options, then sets
46
- /// each option value to a curresponding field of the option store.
46
+ /// each option value to a corresponding field of the option store.
47
47
///
48
48
/// Within this method, a vector of [OptCfg] is made from the fields of the option store.
49
- /// This [OptCfg] vector is set into [Cmd] instance.
49
+ /// This [OptCfg] vector is set into this [Cmd] instance.
50
50
/// If you want to access this option configurations, get them by `opt_cfgs` method.
51
51
///
52
52
/// An option configuration corresponding to each field of an option store is determined by
@@ -68,8 +68,8 @@ impl<'b> Cmd<'_> {
68
68
/// If you want to specify multiple option names, separate them with commas.
69
69
/// If you want to specify multiple default values, separate them with commas and round them
70
70
/// with square brackets, like `[1,2,3]`.
71
- /// If you want to use your favorite carachter as a separator, you can use it by putting it on
72
- /// the left side of the open square bracket, like `/[1/2/3]`.
71
+ /// If you want to use your favorite character as a separator, you can use it by putting it
72
+ /// on the left side of the open square bracket, like `/[1/2/3]`.
73
73
///
74
74
/// NOTE: A default value of empty string array option in a field attribute is `[]`, like
75
75
/// `#[opt(cfg="=[]")]`, but it doesn't represent an array which contains only one empty
@@ -114,7 +114,7 @@ impl<'b> Cmd<'_> {
114
114
opt_store. set_field_values ( & self . opts )
115
115
}
116
116
117
- /// Parse command line arguments until the first command argument and set their option values
117
+ /// Parses command line arguments until the first command argument and set their option values
118
118
/// to the option store which is passed as an argument.
119
119
///
120
120
/// This method creates and returns a new [Cmd] instance that holds the command line arguments
0 commit comments