@salesforce/cli 2.86.4 → 2.86.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,9 +28,9 @@ const hook = async function ({ argv, options, context }) {
28
28
  (flagOptions.type === 'option' && flagOptions.multiple !== true) || flagOptions.type === 'boolean')
29
29
  .filter(([flagName, flagOptions]) =>
30
30
  // ignore if short char flag is present
31
- argv.includes(`-${flagOptions.char}`) ||
31
+ (flagOptions.char && argv.includes(`-${flagOptions.char}`)) ??
32
32
  // ignore if long flag is present
33
- argv.includes(`--${flagName}`) ||
33
+ argv.includes(`--${flagName}`) ??
34
34
  // ignore if --no- flag is present
35
35
  (flagOptions.type === 'boolean' && flagOptions.allowNo && argv.includes(`--no-${flagName}`)))
36
36
  .flatMap(([flagName, flagOptions]) => {