File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -229,14 +229,17 @@ fn getopts(args: ~[str], opts: ~[opt]) -> result unsafe {
229
229
/* In a series of potential options (eg. -aheJ), if we see
230
230
one which takes an argument, we assume all subsequent
231
231
characters make up the argument. This allows options
232
- such as -L/usr/local/lib/foo to be interpreted correctly
232
+ such as -L/usr/local/lib/foo to be interpreted
233
+ correctly
233
234
*/
235
+
234
236
alt find_opt( opts, opt) {
235
237
some ( id) {
236
238
last_valid_opt_id = option:: some ( id) ;
237
239
}
238
240
none {
239
- let arg_follows = option:: is_some ( last_valid_opt_id) &&
241
+ let arg_follows =
242
+ option:: is_some ( last_valid_opt_id) &&
240
243
alt opts[ option:: get ( last_valid_opt_id) ] . hasarg {
241
244
yes | maybe { true }
242
245
no { false }
You can’t perform that action at this time.
0 commit comments