File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,14 @@ class ConfigEditorApp(App):
35
35
# Main application class
36
36
37
37
# Change to the root directory of the app to the root of the project
38
- script_path = os .path .abspath (os .path .dirname (__file__ ))
39
- root_path = os .path .abspath (os .path .join (script_path , ".." , ".." ))
40
- os .chdir (root_path )
38
+ SCRIPT_PATH = os .path .abspath (os .path .dirname (__file__ ))
39
+ ROOT_PATH = os .path .abspath (os .path .join (SCRIPT_PATH , ".." , ".." ))
40
+ os .chdir (ROOT_PATH )
41
41
42
- # Options
42
+ # Set the application options
43
+ option_enable_copy = True
44
+
45
+ # Options to be set by the command line arguments
43
46
option_target = None
44
47
option_arduino_path = None
45
48
option_arduino_branch = None
@@ -130,18 +133,21 @@ def main() -> None:
130
133
parser .add_argument ("-A" , "--arduino-branch" ,
131
134
metavar = "<arduino branch>" ,
132
135
type = str ,
136
+ default = "" ,
133
137
required = False ,
134
138
help = "Branch of the arduino-esp32 repository to be used" )
135
139
136
140
parser .add_argument ("-I" , "--idf-branch" ,
137
141
metavar = "<IDF branch>" ,
138
142
type = str ,
143
+ default = "" ,
139
144
required = False ,
140
145
help = "Branch of the ESP-IDF repository to be used" )
141
146
142
147
parser .add_argument ("-i" , "--idf-commit" ,
143
148
metavar = "<IDF commit>" ,
144
149
type = str ,
150
+ default = "" ,
145
151
required = False ,
146
152
help = "Commit of the ESP-IDF repository to be used" )
147
153
You can’t perform that action at this time.
0 commit comments