diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-08-27 22:50:59 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-08-27 22:50:59 +0200 |
commit | 6976655d6cf243a878702aa05c9843a73bad8984 (patch) | |
tree | f31990f0ec05ee590bac4321d3ceda67672727c8 /src | |
parent | issue 7, c version (diff) | |
download | argparser-6976655d6cf243a878702aa05c9843a73bad8984.tar.gz argparser-6976655d6cf243a878702aa05c9843a73bad8984.tar.bz2 argparser-6976655d6cf243a878702aa05c9843a73bad8984.tar.xz |
derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/argparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/argparser.c b/src/argparser.c index 7c80759..f274fd3 100644 --- a/src/argparser.c +++ b/src/argparser.c @@ -1420,7 +1420,7 @@ long args_parse(int argc, char** argv) else if (((*arg == '-') || (*arg == '+')) && (*(arg + 1) != 0)) if (args_alternative || (*arg == *(arg + 1))) { - long eq = 0, type = -1; + long eq = 0, type = 100; if (dontget <= 0) { if (args_optmap_contains(arg)) @@ -1551,7 +1551,7 @@ long args_parse(int argc, char** argv) char* opt = args_optmap_get_standard(*(optqueue + i)); char* arg = argptr > i ? *(argqueue + i) : null; if (argptr <= i) - args_optmap_triggerv(opt, null); + args_optmap_triggerv(*(optqueue + i), null); i++; if ((args_optmap_contains(opt) == false) || (args_opts_contains(opt) == false)) args_opts_new(opt); |