blob: ee82986fc7617b833e2920f4ab8c1083dda2bebb [file] [log] [blame]
Deepak Kodihalli0361e3f2016-11-29 00:46:27 -06001#pragma once
2
3#include <string>
4#include <unordered_map>
5
6namespace openpower
7{
8namespace vpd
9{
10namespace args
11{
12
13using Args = std::unordered_map<std::string,
14 std::vector<std::string>>;
15
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