From 7945ef693bf8cb3ddc83b651910e1da0922294e7 Mon Sep 17 00:00:00 2001 From: John Gee Date: Fri, 25 Feb 2022 12:39:03 +1300 Subject: [PATCH] Fix typos in comments --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 6948332..1b5eb3b 100644 --- a/index.js +++ b/index.js @@ -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' @@ -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); }