From c54b7790b698d3f111cc07b9bf0f3b09e6037bcf Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Mon, 1 Feb 2021 19:48:57 +0000 Subject: [PATCH] Initialise Parameters using keyword-args instead of positional-args --- pico_project.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pico_project.py b/pico_project.py index e6b7630..37b9d99 100755 --- a/pico_project.py +++ b/pico_project.py @@ -709,10 +709,10 @@ def OK(self): if (self.wantVSCode): projects.append("vscode") - p = Parameters(self.sdkpath, Path(projectPath), self.projectName.get(), True, self.wantOverwrite.get(), self.wantBuild.get(),\ - features, projects, self.configs, self.wantRunFromRAM.get(), \ - self.wantExamples.get(),\ - self.wantUART.get(), self.wantUSB.get()) + p = Parameters(sdkPath=self.sdkpath, projectRoot=Path(projectPath), projectName=self.projectName.get(), + gui=True, overwrite=self.wantOverwrite.get(), build=self.wantBuild.get(), + features=features, projects=projects, configs=self.configs, runFromRAM=self.wantRunFromRAM.get(), + examples=self.wantExamples.get(), uart=self.wantUART.get(), usb=self.wantUSB.get()) DoEverything(self, p) @@ -1172,7 +1172,10 @@ def DoEverything(parent, params): sys.exit(0) else : - p = Parameters(sdkPath, projectRoot, args.name, False, args.overwrite, args.build, args.feature, args.project, (), args.runFromRAM, args.examples, args.uart, args.usb) + p = Parameters(sdkPath=sdkPath, projectRoot=projectRoot, projectName=args.name, + gui=False, overwrite=args.overwrite, build=args.build, features=args.feature, + projects=args.project, configs=(), runFromRAM=args.runFromRAM, + examples=args.examples, uart=args.uart, usb=args.usb) DoEverything(None, p)