File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -548,6 +548,8 @@ const Commands = Module("commands", {
548
548
var onlyArgumentsRemaining = allowUnknownOptions || ( options . length == 0 && subCommands . length == 0 ) || false ; // after a -- has been found
549
549
var arg = null ;
550
550
var count = 0 ; // the length of the argument
551
+ var quote = null ;
552
+ var error = null ;
551
553
var i = 0 ;
552
554
var completeOpts ;
553
555
@@ -692,7 +694,7 @@ const Commands = Module("commands", {
692
694
}
693
695
694
696
// if not an option, treat this token as an argument
695
- let [ count , arg , quote , error ] = getNextArg ( sub ) ;
697
+ [ count , arg , quote , error ] = getNextArg ( sub ) ;
696
698
liberator . assert ( ! error , error ) ;
697
699
698
700
if ( complete ) {
Original file line number Diff line number Diff line change @@ -123,11 +123,11 @@ const Option = Class("Option", {
123
123
else
124
124
scope = this . scope ;
125
125
126
+ let value ;
126
127
// Options with a custom getter are always responsible for returning a meaningful value
127
128
if ( this . getter )
128
129
return liberator . trapErrors ( this . getter , this , value ) ;
129
130
130
- let value ;
131
131
if ( liberator . has ( "tabs" ) && ( scope & Option . SCOPE_LOCAL ) )
132
132
value = tabs . options [ this . name ] ;
133
133
if ( ( scope & Option . SCOPE_GLOBAL ) && ( value == undefined ) )
You can’t perform that action at this time.
0 commit comments