Option that requires an argument requires its name
Diffstat:
2 files changed, 6 insertions(+), 6 deletions(-)
@@ -10,7 +10,7 @@
class Parser {
struct option_t {
const char *name;
char key;
bool arg;
const char *arg;
};
struct argp_t {
@@ -54,11 +54,11 @@
int parse_opt(int key, const char *arg, void *input) {
// clang-format off
static const Parser::option_t options[] = {
{ "--debug", 'd', 0},
{ "--hex", 'h', 0},
{"--relocatable", 'r', 0},
{ "-o", 'o', 1},
{ "--place", 'p', 1},
{ "--debug", 'd', 0},
{ "--hex", 'h', 0},
{"--relocatable", 'r', 0},
{ "-o", 'o', "file"},
{ "--place", 'p', "address"},
{0},
};
// clang-format on