Deepak Kodihalli | 0361e3f | 2016-11-29 00:46:27 -0600 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <string> |
| 4 | #include <unordered_map> |
Patrick Venture | c83c4dc | 2018-11-01 16:29:18 -0700 | [diff] [blame] | 5 | #include <vector> |
Deepak Kodihalli | 0361e3f | 2016-11-29 00:46:27 -0600 | [diff] [blame] | 6 | |
| 7 | namespace openpower |
| 8 | { |
| 9 | namespace vpd |
| 10 | { |
| 11 | namespace args |
| 12 | { |
| 13 | |
Patrick Venture | c83c4dc | 2018-11-01 16:29:18 -0700 | [diff] [blame] | 14 | using Args = std::unordered_map<std::string, std::vector<std::string>>; |
Deepak Kodihalli | 0361e3f | 2016-11-29 00:46:27 -0600 | [diff] [blame] | 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 | */ |
| 23 | Args parse(int argc, char** argv); |
| 24 | |
| 25 | /** @brief Display usage of openpower-vpd-read |
| 26 | * |
| 27 | * @param[in] argv - argument array |
| 28 | */ |
| 29 | void usage(char** argv); |
| 30 | |
| 31 | } // namespace args |
| 32 | } // namespace vpd |
| 33 | } // namespace openpower |