File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ do_parse_command_line(int argc, char** argv)
96
96
opt<cow_string> path;
97
97
cow_vector<Value> args;
98
98
99
- // Check for some common options before calling `getopt()`.
100
99
if (argc > 1 ) {
100
+ // Check for some common options before calling `getopt()`.
101
101
if (::strcmp (argv[1 ], " --help" ) == 0 )
102
102
do_print_help_and_exit (argv[0 ]);
103
103
@@ -108,7 +108,6 @@ do_parse_command_line(int argc, char** argv)
108
108
// Parse command-line options.
109
109
int ch;
110
110
while ((ch = ::getopt (argc, argv, " +hIiO::Vv" )) != -1 ) {
111
- // Identify a single option.
112
111
switch (ch) {
113
112
case ' h' :
114
113
help = true ;
@@ -126,8 +125,8 @@ do_parse_command_line(int argc, char** argv)
126
125
if (!optarg || (optarg [0 ] < ' 0' ) || (optarg [0 ] > ' 9' ) || optarg [1 ])
127
126
exit_printf (exit_invalid_argument,
128
127
" %s: `-O` requires an integer argument between 0 and 9." , argv[0 ]);
129
- else
130
- optimize = optarg [0 ] - ' 0' ;
128
+
129
+ optimize = optarg [0 ] - ' 0' ;
131
130
continue ;
132
131
133
132
case ' V' :
You can’t perform that action at this time.
0 commit comments