Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const parseArgs = (
// withValue option should also support setting values when '=
// isn't used ie. both --foo=b and --foo b should work

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

} else {
// Arguements without a dash prefix are considered "positional"
// Arguments without a dash prefix are considered "positional"
ArrayPrototypePush(result.positionals, arg);
}

Expand Down