Skip to content

Commit 2ab5af3

Browse files
authored
docs(fix): typos in comments (#67)
1 parent f575021 commit 2ab5af3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const parseArgs = (
149149
// withValue option should also support setting values when '=
150150
// isn't used ie. both --foo=b and --foo b should work
151151

152-
// If withValue option is specified, take next position arguement as
152+
// If withValue option is specified, take next position argument as
153153
// value and then increment pos so that we don't re-evaluate that
154154
// arg, else set value as undefined ie. --foo b --bar c, after setting
155155
// b as the value for foo, evaluate --bar next and skip 'b'
@@ -160,12 +160,12 @@ const parseArgs = (
160160
} else {
161161
// Cases when an arg is specified without a value, example
162162
// '--foo --bar' <- 'foo' and 'bar' flags should be set to true and
163-
// shave value as undefined
163+
// save value as undefined
164164
storeOptionValue(options, arg, undefined, result);
165165
}
166166

167167
} else {
168-
// Arguements without a dash prefix are considered "positional"
168+
// Arguments without a dash prefix are considered "positional"
169169
ArrayPrototypePush(result.positionals, arg);
170170
}
171171

0 commit comments

Comments
 (0)