Serac  0.1
Serac is an implicit thermal strucural mechanics simulation code.
cli.hpp
Go to the documentation of this file.
1 // Copyright (c) 2019-2024, Lawrence Livermore National Security, LLC and
2 // other Serac Project Developers. See the top-level LICENSE file for
3 // details.
4 //
5 // SPDX-License-Identifier: (BSD-3-Clause)
6 
14 #pragma once
15 
16 #include <string>
17 #include <unordered_map>
18 
22 namespace serac::cli {
23 
32 std::unordered_map<std::string, std::string> defineAndParse(int argc, char* argv[], std::string app_description);
33 
39 void printGiven(std::unordered_map<std::string, std::string>& cli_opts);
40 
41 } // namespace serac::cli
Command line functionality.
Definition: cli.cpp:15
std::unordered_map< std::string, std::string > defineAndParse(int argc, char *argv[], std::string app_description)
Defines command line options and parses the found values.
Definition: cli.cpp:19
void printGiven(std::unordered_map< std::string, std::string > &cli_opts)
Prints all given command line options to the screen.
Definition: cli.cpp:104