You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.about("Execute <script> as a literal expression and display the result.")
120
+
.help("Execute <script> as a literal expression and display the result.")
120
121
.long("expr")
121
122
.short('e')
122
123
.takes_value(false)
123
124
.requires("script")
124
125
)
125
126
.arg(Arg::new("loop")
126
-
.about("Execute <script> as a literal closure once for each line from stdin.")
127
+
.help("Execute <script> as a literal closure once for each line from stdin.")
127
128
.long("loop")
128
129
.short('l')
129
130
.takes_value(false)
@@ -136,51 +137,51 @@ fn parse_args() -> Args {
136
137
Options that impact the script being executed.
137
138
*/
138
139
.arg(Arg::new("cargo-output")
139
-
.about("Show output from cargo when building.")
140
+
.help("Show output from cargo when building.")
140
141
.short('o')
141
142
.long("cargo-output")
142
143
.requires("script")
143
144
)
144
145
.arg(Arg::new("count")
145
-
.about("Invoke the loop closure with two arguments: line, and line number.")
146
+
.help("Invoke the loop closure with two arguments: line, and line number.")
146
147
.long("count")
147
148
.requires("loop")
148
149
)
149
150
.arg(Arg::new("debug")
150
-
.about("Build a debug executable, not an optimised one.")
151
+
.help("Build a debug executable, not an optimised one.")
151
152
.long("debug")
152
153
)
153
154
.arg(Arg::new("dep")
154
-
.about("Add an additional Cargo dependency. Each SPEC can be either just the package name (which will assume the latest version) or a full `name=version` spec.")
155
+
.help("Add an additional Cargo dependency. Each SPEC can be either just the package name (which will assume the latest version) or a full `name=version` spec.")
155
156
.long("dep")
156
157
.short('d')
157
158
.takes_value(true)
158
159
.multiple_occurrences(true)
159
160
.number_of_values(1)
160
161
)
161
162
.arg(Arg::new("dep_extern")
162
-
.about("Like `dep`, except that it *also* adds a `#[macro_use] extern crate name;` item for expression and loop scripts. Note that this only works if the name of the dependency and the name of the library it generates are exactly the same.")
163
+
.help("Like `dep`, except that it *also* adds a `#[macro_use] extern crate name;` item for expression and loop scripts. Note that this only works if the name of the dependency and the name of the library it generates are exactly the same.")
163
164
.long("dep-extern")
164
165
.short('D')
165
166
.takes_value(true)
166
167
.multiple_occurrences(true)
167
168
.requires("expr_or_loop")
168
169
)
169
170
.arg(Arg::new("extern")
170
-
.about("Adds an `#[macro_use] extern crate name;` item for expressions and loop scripts.")
171
+
.help("Adds an `#[macro_use] extern crate name;` item for expressions and loop scripts.")
171
172
.long("extern")
172
173
.short('x')
173
174
.takes_value(true)
174
175
.multiple_occurrences(true)
175
176
.requires("expr_or_loop")
176
177
)
177
178
.arg(Arg::new("features")
178
-
.about("Cargo features to pass when building and running.")
179
+
.help("Cargo features to pass when building and running.")
179
180
.long("features")
180
181
.takes_value(true)
181
182
)
182
183
.arg(Arg::new("unstable_features")
183
-
.about("Add a #![feature] declaration to the crate.")
184
+
.help("Add a #![feature] declaration to the crate.")
184
185
.long("unstable-feature")
185
186
.short('u')
186
187
.takes_value(true)
@@ -192,46 +193,46 @@ fn parse_args() -> Args {
192
193
Options that change how rust-script itself behaves, and don't alter what the script will do.
193
194
*/
194
195
.arg(Arg::new("clear-cache")
195
-
.about("Clears out the script cache.")
196
+
.help("Clears out the script cache.")
196
197
.long("clear-cache")
197
198
)
198
199
.arg(Arg::new("force")
199
-
.about("Force the script to be rebuilt.")
200
+
.help("Force the script to be rebuilt.")
200
201
.long("force")
201
202
.requires("script")
202
203
)
203
204
.arg(Arg::new("gen_pkg_only")
204
-
.about("Generate the Cargo package, but don't compile or run it.")
205
+
.help("Generate the Cargo package, but don't compile or run it.")
0 commit comments