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

Commit 53ff272

Browse files
authored
Merge pull request #222 from netlify/fixFlag
Fix flag
2 parents a126857 + bdb6f97 commit 53ff272

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

src/commands/dev/index.js

+15-4
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,17 @@ DevCommand.examples = [
312312
DevCommand.strict = false;
313313

314314
DevCommand.flags = {
315-
command: flags.string({ char: "c", description: "command to run" }),
316-
port: flags.integer({ char: "p", description: "port of netlify dev" }),
317-
dir: flags.integer({ char: "d", description: "dir with static files" }),
315+
command: flags.string({
316+
char: "c",
317+
description: "command to run"
318+
}),
319+
port: flags.integer({
320+
char: "p",
321+
description: "port of netlify dev" }),
322+
dir: flags.string({
323+
char: "d",
324+
description: "dir with static files"
325+
}),
318326
functions: flags.string({
319327
char: "f",
320328
description: "Specify a functions folder to serve"
@@ -323,7 +331,10 @@ DevCommand.flags = {
323331
char: "o",
324332
description: "disables any features that require network access"
325333
}),
326-
live: flags.boolean({ char: "l", description: "Start a public live session" })
334+
live: flags.boolean({
335+
char: "l",
336+
description: "Start a public live session"
337+
})
327338
};
328339

329340
module.exports = DevCommand;

src/commands/functions/invoke.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,10 @@ FunctionsInvokeCommand.args = [
231231
];
232232

233233
FunctionsInvokeCommand.flags = {
234-
name: flags.string({ char: "n", description: "function name to invoke" }),
234+
name: flags.string({
235+
char: "n",
236+
description: "function name to invoke"
237+
}),
235238
functions: flags.string({
236239
char: "f",
237240
description: "Specify a functions folder to parse, overriding netlify.toml"

src/commands/functions/list.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ NOT the same as listing the functions that have been deployed. For that info you
8888
`;
8989
FunctionsListCommand.aliases = ["function:list"];
9090
FunctionsListCommand.flags = {
91-
name: flags.string({ char: "n", description: "name to print" }),
91+
name: flags.string({
92+
char: "n",
93+
description: "name to print"
94+
}),
9295
functions: flags.string({
9396
char: "f",
9497
description: "Specify a functions folder to serve"

0 commit comments

Comments
 (0)