File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -806,17 +806,17 @@ int main(int argc, char *argv[]) {
806
806
for (int i = 2 ; i < argc; i += 1 ) {
807
807
// do some basic validation
808
808
char *parm = argv[i+1 ];
809
+ // uniarg means the arg comes right after the letter in accordance with posix
810
+ int uniarg = strlen (argv[i]) > 2 ;
809
811
810
812
if (argv[i][0 ] != ' -' ) {
811
813
error_usage ();
812
814
} // must start with dash
813
815
814
- if strlen (argv[i]) < 2 {
816
+ if ( strlen (argv[i]) < 2 ) {
815
817
error_usage ();
816
818
} // must have at least dash '-' and option letter
817
819
818
- // uniarg means the arg comes right after the letter in accordance with posix
819
- int uniarg = strlen (argv[i]) > 2 ;
820
820
if (uniarg) {
821
821
parm=&argv[i][2 ];
822
822
} else if (i + 1 >= argc) {
You can’t perform that action at this time.
0 commit comments