Changesets · Branches · Tags · Compare
| Changeset | 247f4e9d534b773a2a614d39239fddc8e972f3203bf8673eb139adf651782ea8 |
|---|---|
| Author | Nate <sestinj@gmail.com> · 2025-08-24 18:54 -07:00 |
| Committer | Nate <sestinj@gmail.com> · 2025-08-24 18:54 -07:00 |
| Parents | 57d99ced5e24 |
1 file changed
modified extensions/cli/src/args.ts +5 −1
| @@ -44,7 +44,11 @@ | ||
| 44 | 44 | flagName: string, |
| 45 | 45 | ): string | undefined { |
| 46 | 46 | const index = args.indexOf(flagName); |
| 47 | - if (index !== -1 && index + 1 < args.length && !args[index + 1].startsWith("--")) { | |
| 47 | + if ( | |
| 48 | + index !== -1 && | |
| 49 | + index + 1 < args.length && | |
| 50 | + !args[index + 1].startsWith("--") | |
| 51 | + ) { | |
| 48 | 52 | return args[index + 1]; |
| 49 | 53 | } |
| 50 | 54 | return undefined; |