From: markus schnalke Date: Fri, 23 Mar 2012 15:07:02 +0000 (+0100) Subject: We need to fix `anno -list -number'. Seems anno needs some more rework. X-Git-Tag: mmh-thesis-end~212 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=34940cc59d658e50484f05ad11abe848ad724526;p=mmh We need to fix `anno -list -number'. Seems anno needs some more rework. --- diff --git a/uip/anno.c b/uip/anno.c index fbabfd4..1512823 100644 --- a/uip/anno.c +++ b/uip/anno.c @@ -167,7 +167,11 @@ main(int argc, char **argv) if (strcmp(*argp, "all") == 0) number = -1; else if (!(number = atoi(*argp))) - adios(NULL, "missing argument to %s", argp[-2]); + /* FIXME: fails for + ** `-list -number l:10' + ** but okay if we add `all'. + */ + adios(NULL, "missing argument to %s", argp[-1]); argp++; }