@@ -24,7 +24,7 @@ const {
24
24
* Determines if the argument may be used as an option value.
25
25
* NB: We are choosing not to accept option-ish arguments.
26
26
* @example
27
- * isOptionValue('V'] ) // returns true
27
+ * isOptionValue('V') // returns true
28
28
* isOptionValue('-v') // returns false
29
29
* isOptionValue('--foo') // returns false
30
30
* isOptionValue(undefined) // returns false
@@ -58,7 +58,7 @@ function isLoneShortOption(arg) {
58
58
* isLoneLongOption('a') // returns false
59
59
* isLoneLongOption('-a') // returns false
60
60
* isLoneLongOption('--foo) // returns true
61
- * isLoneLongOption('--foo=bar) // returns false
61
+ * isLoneLongOption('--foo=bar' ) // returns false
62
62
*/
63
63
function isLoneLongOption ( arg ) {
64
64
return arg . length > 2 &&
@@ -67,10 +67,10 @@ function isLoneLongOption(arg) {
67
67
}
68
68
69
69
/**
70
- * Determines if `arg` is a long option and value in same argument.
70
+ * Determines if `arg` is a long option and value in the same argument.
71
71
* @example
72
72
* isLongOptionAndValue('--foo) // returns false
73
- * isLongOptionAndValue('--foo=bar) // returns true
73
+ * isLongOptionAndValue('--foo=bar' ) // returns true
74
74
*/
75
75
function isLongOptionAndValue ( arg ) {
76
76
return arg . length > 2 &&
@@ -133,11 +133,11 @@ function isShortOptionAndValue(arg, options) {
133
133
134
134
/**
135
135
* Find the long option associated with a short option. Looks for a configured
136
- * `short` and returns the short option itself if long option not found.
136
+ * `short` and returns the short option itself if a long option is not found.
137
137
* @example
138
138
* findLongOptionForShort('a', {}) // returns 'a'
139
139
* findLongOptionForShort('b', {
140
- * options: { bar: { short: 'b' }}
140
+ * options: { bar: { short: 'b' } }
141
141
* }) // returns 'bar'
142
142
*/
143
143
function findLongOptionForShort ( shortOption , options ) {
0 commit comments