We need to fix `anno -list -number'. Seems anno needs some more rework.
authormarkus schnalke <meillo@marmaro.de>
Fri, 23 Mar 2012 15:07:02 +0000 (16:07 +0100)
committermarkus schnalke <meillo@marmaro.de>
Fri, 23 Mar 2012 15:07:02 +0000 (16:07 +0100)
uip/anno.c

index fbabfd4..1512823 100644 (file)
@@ -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++;
                                }