@@ -147,7 +147,7 @@ void show_usage()
147
147
148
148
int main (int argc, char *argv[])
149
149
{
150
- // Initialize configuration with defaults
150
+
151
151
evds::Config config;
152
152
config.cache = false ;
153
153
config.start_date = " 01-01-2020" ;
@@ -157,19 +157,15 @@ int main(int argc, char *argv[])
157
157
config.frequency = " default" ; // | monthly | weekly | annually | semimonthly | semiannually | business
158
158
config.formulas = " default" ; // | level | percentage_change | difference | year_to_year_percent_change | year_to_year_differences |
159
159
config.aggregation = " default" ; // | avg |min | max | first | last | sum
160
-
161
- // Parse command-line arguments
160
+
162
161
std::vector<std::string> indexes;
163
162
ParseArgsOptions poptions{argc, argv, indexes}; // Pass indexes by reference
164
163
165
164
auto args = parseArgs (poptions);
166
165
config.indexes = poptions.indexes ;
167
- // config.verbose = poptions.verbose;
168
-
169
- /*
170
- ./evdscpp --cache true --test false --start_date 01-12-2020
166
+
171
167
172
- */
168
+
173
169
174
170
setConfigOptions (args, config);
175
171
@@ -198,17 +194,9 @@ int main(int argc, char *argv[])
198
194
catch (const std::exception &ex)
199
195
{
200
196
std::cerr << " passing: " << ex.what () << std::endl;
201
- // return EXIT_FAILURE;
197
+
202
198
}
203
199
}
204
200
205
201
return EXIT_SUCCESS;
206
202
}
207
-
208
- // Example Usage:
209
- // 1. Using positional indexes only:
210
- // ./evdscpp TP.DK.USD.A,TP.DK.EUR.A
211
-
212
- // 2. Using indexes with named arguments:
213
- // ./evdscpp TP.DK.USD.A,TP.DK.EUR.A --start_date 01-01-2021 --end_date 31-12-2021 --cache true
214
- // ./evdscpp bie_yssk --cache true
0 commit comments