Deepak Kodihalli | 0361e3f | 2016-11-29 00:46:27 -0600 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <string> |
| 4 | #include <unordered_map> |
| 5 | |
| 6 | namespace openpower |
| 7 | { |
| 8 | namespace vpd |
| 9 | { |
| 10 | namespace args |
| 11 | { |
| 12 | |
| 13 | using 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 | */ |
| 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 |