From 6b10f2ab7d1f7703b6e73fcb4b5f425b6394aab0 Mon Sep 17 00:00:00 2001 From: J87 <68929154+jake-87@users.noreply.github.com> Date: Sun, 21 Nov 2021 12:07:30 +1100 Subject: [PATCH] Resolve function style --- packages/ctl/ctl.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/ctl/ctl.js b/packages/ctl/ctl.js index be246007..7f0230a1 100755 --- a/packages/ctl/ctl.js +++ b/packages/ctl/ctl.js @@ -108,9 +108,11 @@ masterConfigCommands.add(new libCommand.Command({ })); masterConfigCommands.add(new libCommand.Command({ definition: ["edit [editor]", "Edit master configuration", (yargs) => { - yargs.positional("editor", { describe: "Editor to use", + yargs.positional("editor", { + describe: "Editor to use", type: "string", - default: "" }); + default: "" + }); }], handler: async function(args, control) { let response = await libLink.messages.getMasterConfig.send(control); @@ -399,9 +401,11 @@ instanceConfigCommands.add(new libCommand.Command({ instanceConfigCommands.add(new libCommand.Command({ definition: ["edit [editor]", "Edit instance configuration", (yargs) => { yargs.positional("instance", { describe: "Instance to set config on", type: "string" }); - yargs.positional("editor", { describe: "Editor to use", + yargs.positional("editor", { + describe: "Editor to use", type: "string", - default: "" }); + default: "" + }); }], handler: async function(args, control) { let instanceId = await libCommand.resolveInstance(control, args.instance);