Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Commit 1764369

Browse files
committed
fix: Reconciling cmd and command between dev block and flag
1 parent 3fc31a1 commit 1764369

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/commands/dev/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,6 @@ class DevCommand extends Command {
184184
}
185185
process.env.NETLIFY_DEV = "true";
186186

187-
if (flags.cmd) {
188-
flags = { command: flags.cmd, ...flags };
189-
}
190187
let settings = await serverSettings(Object.assign(config.dev, flags));
191188

192189
if (!(settings && settings.command)) {
@@ -279,7 +276,7 @@ DevCommand.examples = [
279276
DevCommand.strict = false;
280277

281278
DevCommand.flags = {
282-
cmd: flags.string({ char: "c", description: "command to run" }),
279+
command: flags.string({ char: "c", description: "command to run" }),
283280
port: flags.integer({ char: "p", description: "port of netlify dev" }),
284281
dir: flags.integer({ char: "d", description: "dir with static files" }),
285282
functions: flags.string({

0 commit comments

Comments
 (0)