Skip to content

Commit b2c165e

Browse files
author
Kelly Selden
committed
fix --help printing for custom commands
1 parent 6daffc6 commit b2c165e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

bin/commands/default.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
'use strict';
22

3+
const args = require('../../src/args');
34
const emberCliUpdate = require('../../src');
45

56
module.exports.command = '$0';
67

8+
module.exports.builder = args;
9+
710
module.exports.handler = async function handler(argv) {
811
let blueprint = argv['blueprint'];
912
let from = argv['from'];

bin/ember-cli-update.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
#!/usr/bin/env node
22
'use strict';
33

4-
const args = require('../src/args');
5-
64
require('yargs')
7-
.options(args)
85
.commandDir('commands')
96
.argv;
107

0 commit comments

Comments
 (0)