Skip to content

Commit d3d9027

Browse files
XhmikosRbcoe
authored andcommitted
docs: fix typos (#194)
1 parent 89d5a15 commit d3d9027

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function parse (args, opts) {
166166
key = arg.match(negatedBoolean)[1]
167167
setArg(key, checkAllAliases(key, flags.arrays) ? [false] : false)
168168

169-
// -- seperated by space.
169+
// -- separated by space.
170170
} else if (arg.match(/^--.+/) || (
171171
!configuration['short-option-groups'] && arg.match(/^-[^-]+/)
172172
)) {
@@ -196,12 +196,12 @@ function parse (args, opts) {
196196
}
197197
}
198198

199-
// dot-notation flag seperated by '='.
199+
// dot-notation flag separated by '='.
200200
} else if (arg.match(/^-.\..+=/)) {
201201
m = arg.match(/^-([^=]+)=([\s\S]*)$/)
202202
setArg(m[1], m[2])
203203

204-
// dot-notation flag seperated by space.
204+
// dot-notation flag separated by space.
205205
} else if (arg.match(/^-.\..+/)) {
206206
next = args[i + 1]
207207
key = arg.match(/^-(.\..+)/)[1]

test/tokenize-arg-string.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe('TokenizeArgString', function () {
5252
args[2].should.equal('--bar=""')
5353
})
5454

55-
it('handles quoted string with embeded quotes', function () {
55+
it('handles quoted string with embedded quotes', function () {
5656
var args = tokenizeArgString('--foo "hello \'world\'" --bar=\'foo "bar"\'')
5757
args[0].should.equal('--foo')
5858
args[1].should.equal('"hello \'world\'"')

test/yargs-parser.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ describe('yargs-parser', function () {
8383
parse.should.have.property('_').with.length(0)
8484
})
8585

86-
it('should explicitly set a boolean option to false if preceeded by "--no-"', function () {
86+
it('should explicitly set a boolean option to false if preceded by "--no-"', function () {
8787
var parse = parser(['--no-moo'])
8888
parse.should.have.property('moo', false)
8989
parse.should.have.property('_').with.length(0)
@@ -894,12 +894,12 @@ describe('yargs-parser', function () {
894894
argv.foo.bar.cool.should.eql(11)
895895
})
896896

897-
it("should allow flags to use dot notation, when seperated by '='", function () {
897+
it("should allow flags to use dot notation, when separated by '='", function () {
898898
var argv = parser(['-f.foo=99'])
899899
argv.f.foo.should.eql(99)
900900
})
901901

902-
it("should allow flags to use dot notation, when seperated by ' '", function () {
902+
it("should allow flags to use dot notation, when separated by ' '", function () {
903903
var argv = parser(['-f.foo', '99'])
904904
argv.f.foo.should.eql(99)
905905
})

0 commit comments

Comments
 (0)