blob: 02afc679967a63c74c3b00119c040b86510fd942 [file] [log] [blame]
Deepak Kodihalli0361e3f2016-11-29 00:46:27 -06001#pragma once
2
3#include <string>
4#include <unordered_map>
Patrick Venturec83c4dc2018-11-01 16:29:18 -07005#include <vector>
Deepak Kodihalli0361e3f2016-11-29 00:46:27 -06006
7namespace openpower
8{
9namespace vpd
10{
11namespace args
12{
13
Patrick Venturec83c4dc2018-11-01 16:29:18 -070014using Args = std::unordered_map<std::string, std::vector<std::string>>;
Deepak Kodihalli0361e3f2016-11-29 00:46:27 -060015
16/** @brief Command-line argument parser for openpower-read-vpd
17 *
18 * @param[in] argc - argument count
19 * @param[in] argv - argument array
20 *
21 * @returns map of argument:value
22 */
23Args parse(int argc, char** argv);
24
25/** @brief Display usage of openpower-vpd-read
26 *
27 * @param[in] argv - argument array
28 */
29void usage(char** argv);
30
31} // namespace args
32} // namespace vpd
33} // namespace openpower