We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f708a69 commit 12db42dCopy full SHA for 12db42d
src/SfCommandError.ts
@@ -113,7 +113,7 @@ export class SfCommandError extends SfError {
113
const aggregator: Array<{ flag: string; args: string[] }> = [];
114
output.forEach((k, i) => {
115
let argCounter = i + 1;
116
- if (k.type === 'flag' && output[argCounter].type === 'arg') {
+ if (k.type === 'flag' && output[argCounter]?.type === 'arg') {
117
const args: string[] = [];
118
while (output[argCounter]?.type === 'arg') {
119
args.push(output[argCounter].input);
0 commit comments