aboutsummaryrefslogtreecommitdiff
path: root/tests/gcffmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gcffmt.c')
-rw-r--r--tests/gcffmt.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/gcffmt.c b/tests/gcffmt.c
index ca69019..842c67b 100644
--- a/tests/gcffmt.c
+++ b/tests/gcffmt.c
@@ -39,16 +39,12 @@ static void
usage(const char *arg, FILE *fp, int code)
{
struct list_helper lh;
- int w;
fprintf(fp,
- "usage: %s%n [-h] [-list[=type]] [-locus] [-delim=char] [-reduce] [-sort]\n",
- arg, &w);
- do
- fputc(' ', fp);
- while (w--);
+ "usage: %s [-h] [-list[=type]] [-locus] [-delim=char] [-reduce] [-sort]\n",
+ arg);
- fprintf(fp, "[-type");
+ fprintf(fp, " [-nopath] [-novalue] [-type");
lh.file = fp;
lh.delim = '=';
grecs_enumerate_parsers(list_parser_types, &lh);
@@ -102,6 +98,10 @@ main(int argc, char **argv)
char *arg = *++argv;
if (strcmp(arg, "-locus") == 0)
flags |= GRECS_NODE_FLAG_LOCUS;
+ else if (strcmp(arg, "-nopath") == 0)
+ flags &= ~GRECS_NODE_FLAG_PATH;
+ else if (strcmp(arg, "-novalue") == 0)
+ flags &= ~GRECS_NODE_FLAG_VALUE;
else if (strncmp(arg, "-delim=", 7) == 0)
flags |= arg[7];
else if (strcmp(arg, "-reduce") == 0)

Return to:

Send suggestions and report system problems to the System administrator.