File tree Expand file tree Collapse file tree 1 file changed +11
-16
lines changed Expand file tree Collapse file tree 1 file changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -113,24 +113,19 @@ impure fn main(vec[str] args) {
113
113
do_warn = false ;
114
114
} else if ( _str. eq ( arg, "-shared" ) ) {
115
115
shared = true ;
116
- } else {
117
- // FIXME: rust could use an elif construct.
118
- if ( _str. eq ( arg, "-o" ) ) {
119
- if ( i+1 u < len) {
120
- output_file = some ( args. ( i +1 u) ) ;
121
- i += 1 u;
122
- } else {
123
- usage ( sess, args. ( 0 ) ) ;
124
- sess. err ( "-o requires an argument" ) ;
125
- }
116
+ } else if ( _str. eq ( arg, "-o" ) ) {
117
+ if ( i+1 u < len) {
118
+ output_file = some ( args. ( i +1 u) ) ;
119
+ i += 1 u;
126
120
} else {
127
- if ( _str. eq ( arg, "-h" ) ) {
128
- usage ( sess, args. ( 0 ) ) ;
129
- } else {
130
- usage ( sess, args. ( 0 ) ) ;
131
- sess. err ( "unrecognized option: " + arg) ;
132
- }
121
+ usage ( sess, args. ( 0 ) ) ;
122
+ sess. err ( "-o requires an argument" ) ;
133
123
}
124
+ } else if ( _str. eq ( arg, "-h" ) ) {
125
+ usage ( sess, args. ( 0 ) ) ;
126
+ } else {
127
+ usage ( sess, args. ( 0 ) ) ;
128
+ sess. err ( "unrecognized option: " + arg) ;
134
129
}
135
130
} else {
136
131
alt ( input_file) {
You can’t perform that action at this time.
0 commit comments