summaryrefslogtreecommitdiffstats
path: root/args.hpp
blob: 02afc679967a63c74c3b00119c040b86510fd942 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once

#include <string>
#include <unordered_map>
#include <vector>

namespace openpower
{
namespace vpd
{
namespace args
{

using Args = std::unordered_map<std::string, std::vector<std::string>>;

/** @brief Command-line argument parser for openpower-read-vpd
 *
 *  @param[in] argc - argument count
 *  @param[in] argv - argument array
 *
 *  @returns map of argument:value
 */
Args parse(int argc, char** argv);

/** @brief Display usage of openpower-vpd-read
 *
 *  @param[in] argv - argument array
 */
void usage(char** argv);

} // namespace args
} // namespace vpd
} // namespace openpower
OpenPOWER on IntegriCloud