File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -200,4 +200,4 @@ exports.runOptions = {
200
200
describe : Constants . cliMessages . RUN . BUILD_TAG ,
201
201
type : "string"
202
202
}
203
- }
203
+ }
Original file line number Diff line number Diff line change @@ -791,12 +791,13 @@ const cleanupTestObservabilityFlags = (rawArgs) => {
791
791
792
792
for ( let i = 0 ; i < rawArgs . length ; i ++ ) {
793
793
const arg = rawArgs [ i ] ;
794
- const next = i + 1 < rawArgs . length ? rawArgs [ i + 1 ] : ''
795
794
if ( arg . startsWith ( '-' ) ) {
796
795
const argName = arg . length > 1 && arg [ 1 ] == '-' ? arg . slice ( 2 ) : arg . slice ( 1 ) ;
797
- // If this argument belongs to cli, we omit it and its value
796
+ // If this flag belongs to cli, we omit it and its value
798
797
if ( cliArgs [ argName ] && ! retain . includes ( argName ) ) {
799
- if ( cliArgs [ argName ] . type && cliArgs [ argName ] . type !== 'boolean' && ! next . startsWith ( '-' ) ) {
798
+ const nextArg = i + 1 < rawArgs . length ? rawArgs [ i + 1 ] : ''
799
+ // if the flag is bound to have a value, we ignore it
800
+ if ( cliArgs [ argName ] . type && cliArgs [ argName ] . type !== 'boolean' && ! nextArg . startsWith ( '-' ) ) {
800
801
i ++ ;
801
802
}
802
803
continue ;
You can’t perform that action at this time.
0 commit comments