Skip to content

Commit

Permalink
Fix --debug flag when trying to debug subcommands
Browse files Browse the repository at this point in the history
The main option gets swallowed.

See tj/commander.js#563 (comment)
  • Loading branch information
gcorne committed Apr 6, 2020
1 parent 29d14fc commit fa84a21
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/cms-cli/commands/main.js
@@ -1,5 +1,4 @@
const { version } = require('../package.json');
const { addLoggerOptions } = require('../lib/commonOpts');
const { addHelpUsageTracking } = require('../lib/usageTracking');

function configureMainCommand(program) {
Expand Down Expand Up @@ -31,7 +30,6 @@ function configureMainCommand(program) {
.command('secrets', 'manage HubSpot secrets')
.command('logs', 'get logs for a function');

addLoggerOptions(program);
addHelpUsageTracking(program);
}

Expand Down

0 comments on commit fa84a21

Please sign in to comment.