File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 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", {
548548 var onlyArgumentsRemaining = allowUnknownOptions || ( options . length == 0 && subCommands . length == 0 ) || false ; // after a -- has been found
549549 var arg = null ;
550550 var count = 0 ; // the length of the argument
551+ var quote = null ;
552+ var error = null ;
551553 var i = 0 ;
552554 var completeOpts ;
553555
@@ -692,7 +694,7 @@ const Commands = Module("commands", {
692694 }
693695
694696 // 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 ) ;
696698 liberator . assert ( ! error , error ) ;
697699
698700 if ( complete ) {
Original file line number Diff line number Diff line change @@ -123,11 +123,11 @@ const Option = Class("Option", {
123123 else
124124 scope = this . scope ;
125125
126+ let value ;
126127 // Options with a custom getter are always responsible for returning a meaningful value
127128 if ( this . getter )
128129 return liberator . trapErrors ( this . getter , this , value ) ;
129130
130- let value ;
131131 if ( liberator . has ( "tabs" ) && ( scope & Option . SCOPE_LOCAL ) )
132132 value = tabs . options [ this . name ] ;
133133 if ( ( scope & Option . SCOPE_GLOBAL ) && ( value == undefined ) )
You can’t perform that action at this time.
0 commit comments