Skip to content

Commit

Permalink
#2175: args: change to camel case to follow style guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander authored and cwschilly committed Sep 20, 2024
1 parent 97a2f1c commit ce03c9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vt/configs/arguments/args.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void postParseTransform(AppConfig& appConfig) {
}
}

void parse_yaml(std::string& config_file, AppConfig& appConfig);
void parseYaml(std::string& config_file, AppConfig& appConfig);

std::tuple<int, std::string> parseArguments(
CLI::App& app, int& argc, char**& argv, AppConfig& appConfig
Expand Down Expand Up @@ -133,7 +133,7 @@ std::tuple<int, std::string> parseArguments(
std::string config_ending = config_file.substr(config_file.size()-4);
if (config_ending == ".yml" || config_ending == "yaml") {
// use yaml-cpp
parse_yaml(config_file, appConfig);
parseYaml(config_file, appConfig);
} else if (config_ending == ".ini" || config_ending == "toml") {
// use CLI parser
app.set_config(
Expand Down Expand Up @@ -200,7 +200,7 @@ std::tuple<int, std::string> parseArguments(
return std::make_tuple(-1, std::string{});
}

void parse_yaml(std::string& config_file, AppConfig& appConfig) {
void parseYaml(std::string& config_file, AppConfig& appConfig) {
// Assume input yaml is structured the same as --vt-help
auto yaml_input = YAML::LoadFile(config_file);

Expand Down

0 comments on commit ce03c9e

Please sign in to comment.