Skip to content

Commit b77ddf3

Browse files
authored
Update run.cpp
typos
1 parent 156ceda commit b77ddf3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

runner/run.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -806,17 +806,17 @@ int main(int argc, char *argv[]) {
806806
for (int i = 2; i < argc; i += 1) {
807807
// do some basic validation
808808
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;
809811

810812
if (argv[i][0] != '-') {
811813
error_usage();
812814
} // must start with dash
813815

814-
if strlen(argv[i]) < 2 {
816+
if (strlen(argv[i]) < 2) {
815817
error_usage();
816818
} // must have at least dash '-' and option letter
817819

818-
// uniarg means the arg comes right after the letter in accordance with posix
819-
int uniarg = strlen(argv[i]) > 2;
820820
if (uniarg) {
821821
parm=&argv[i][2];
822822
} else if (i + 1 >= argc) {

0 commit comments

Comments
 (0)