File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -91,9 +91,13 @@ def create_profile():
9191 )
9292
9393 parser .add_argument ('-n' , '--apparatus_name' ,
94- type = str ,
95- help = 'Sets the apparatus_name in the labconfig file. Defaults to example_apparatus' ,
94+ type = str ,
95+ help = 'Sets the apparatus_name in the labconfig file. Defaults to example_apparatus' ,
9696 )
97+ parser .add_argument ('-c' , '--compile' ,
98+ type = bool ,
99+ help = 'Enables compilation of the default example connection table' ,
100+ default = False )
97101
98102 args = parser .parse_args ()
99103
@@ -123,5 +127,6 @@ def create_profile():
123127 new_path = Path (str (path ).replace ('example_apparatus' , args .apparatus_name ))
124128 path .rename (new_path )
125129
126- # compile the initial example connection table
127- compile_connection_table ()
130+ if args .compile :
131+ # compile the initial example connection table
132+ compile_connection_table ()
You can’t perform that action at this time.
0 commit comments