diff options
author | Mattias Andrée <maandree@kth.se> | 2018-11-14 23:16:47 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2018-11-14 23:16:47 +0100 |
commit | 31f0a0fb1454b8792b9c0807ef6f7ad256df9476 (patch) | |
tree | 1c1d50fd8e75d08fac7070a6528548e20d64c2f1 | |
parent | Some fixes to libsimple-arg.h, test everything except long arguments, and fix some man pages (diff) | |
download | libsimple-31f0a0fb1454b8792b9c0807ef6f7ad256df9476.tar.gz libsimple-31f0a0fb1454b8792b9c0807ef6f7ad256df9476.tar.bz2 libsimple-31f0a0fb1454b8792b9c0807ef6f7ad256df9476.tar.xz |
libsimple-arg: test that ARGHERE() == &LFLAG()[1] for the first flag
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | libsimple-arg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsimple-arg.c b/libsimple-arg.c index fcebb42..a802c55 100644 --- a/libsimple-arg.c +++ b/libsimple-arg.c @@ -332,6 +332,7 @@ parser6(int argc, char *argv[]) PARSER_BEGIN; ARGBEGIN2(1, 1) { default: + assert(ARGHERE() == &LFLAG()[1]); argv[0] = LFLAG(); goto stop; } ARGALT('+') { |