diff --git a/src/odm.cpp b/src/odm.cpp index 068ef66..b32f3d6 100644 --- a/src/odm.cpp +++ b/src/odm.cpp @@ -61,13 +61,9 @@ int main(int argc, char** argv) NEMOData ndata; MString dataset = args["dataset"]; if(!dataset.Exist()) dataset = "DT"; - MString cred = args["cred"]; - if(!cred.Exist()) cred = GPL.ParameterSValue("COPERNICUS_USER", ""); - MString proxy; - if(args.contains("proxy")) - MString proxy = args["proxy"]; - else - proxy = GPL.ParameterSValue("COPERNICUS_PROXY", ""); + + MString cred = GPL.ParameterSValue("COPERNICUS_USER", ""); + MString proxy = GPL.ParameterSValue("COPERNICUS_PROXY", ""); if(!ndata.Open(dataset, cred, proxy)) {