Smith  0.1
Smith is an implicit thermal structural mechanics simulation code.
cli.hpp
Go to the documentation of this file.
1 // Copyright (c) Lawrence Livermore National Security, LLC and
2 // other Smith 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 smith::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 smith::cli
Command line functionality.
Definition: cli.cpp:18
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:22
void printGiven(std::unordered_map< std::string, std::string > &cli_opts)
Prints all given command line options to the screen.
Definition: cli.cpp:107