We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a5fdef commit 784a969Copy full SHA for 784a969
1 file changed
src/lib/command-framework/apify-command.ts
@@ -393,7 +393,12 @@ export abstract class ApifyCommand<T extends typeof BuiltApifyCommand = typeof B
393
394
const flagKey = kebabCaseString(camelCaseToKebabCase(key)).toLowerCase();
395
396
- finalYargs = internalBuilderData.builder(finalYargs, flagKey);
+ // yargs handles "no-" flags by negating the flag, so we need to handle that differently if we register a flag with a "no-" prefix
397
+ if (flagKey.startsWith('no-')) {
398
+ finalYargs = internalBuilderData.builder(finalYargs, flagKey.slice(3));
399
+ } else {
400
+ finalYargs = internalBuilderData.builder(finalYargs, flagKey);
401
+ }
402
}
403
404
0 commit comments