You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is probably buggy, as if there is a config file, the defaults from parseFromArguments are not applied. Also the manual setting of config values in main.js is missing some parameters etc.
A better way would be to replace everything in main.js with e.g. var paramedicConfig = new ParamedicConfig(argv, pathToParamedicConfig); and then do all the logic in the constructor: Read and apply the file if supplied, then merge over all the manual arguments that are present in argv.
Currently the paramedic config is built via:
cordova-paramedic/main.js
Lines 78 to 206 in 5b8d306
and
cordova-paramedic/lib/ParamedicConfig.js
Lines 280 to 327 in 5b8d306
This is probably buggy, as if there is a config file, the defaults from
parseFromArguments
are not applied. Also the manual setting of config values inmain.js
is missing some parameters etc.A better way would be to replace everything in
main.js
with e.g.var paramedicConfig = new ParamedicConfig(argv, pathToParamedicConfig);
and then do all the logic in the constructor: Read and apply the file if supplied, then merge over all the manual arguments that are present inargv
.Pseudocode from @erisu:
The text was updated successfully, but these errors were encountered: