Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0af2e2e

Browse files
committedNov 5, 2024·
runtime error
1 parent 367fb0e commit 0af2e2e

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed
 

‎src/main.cpp

+5-17
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ void show_usage()
147147

148148
int main(int argc, char *argv[])
149149
{
150-
// Initialize configuration with defaults
150+
151151
evds::Config config;
152152
config.cache = false;
153153
config.start_date = "01-01-2020";
@@ -157,19 +157,15 @@ int main(int argc, char *argv[])
157157
config.frequency = "default"; // | monthly | weekly | annually | semimonthly | semiannually | business
158158
config.formulas = "default"; // | level | percentage_change | difference | year_to_year_percent_change | year_to_year_differences |
159159
config.aggregation = "default"; // | avg |min | max | first | last | sum
160-
161-
// Parse command-line arguments
160+
162161
std::vector<std::string> indexes;
163162
ParseArgsOptions poptions{argc, argv, indexes}; // Pass indexes by reference
164163

165164
auto args = parseArgs(poptions);
166165
config.indexes = poptions.indexes;
167-
// config.verbose = poptions.verbose;
168-
169-
/*
170-
./evdscpp --cache true --test false --start_date 01-12-2020
166+
171167

172-
*/
168+
173169

174170
setConfigOptions(args, config);
175171

@@ -198,17 +194,9 @@ int main(int argc, char *argv[])
198194
catch (const std::exception &ex)
199195
{
200196
std::cerr << "passing: " << ex.what() << std::endl;
201-
// return EXIT_FAILURE;
197+
202198
}
203199
}
204200

205201
return EXIT_SUCCESS;
206202
}
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

Comments
 (0)