else
sfputr(tmps, "--", -1);
sfputr(tmps, agnameof(AGHEAD(e)), -1);
- if (*key) {
+ if (key && *key) {
sfputc(tmps, '[');
sfputr(tmps, key, -1);
sfputc(tmps, ']');
Agsym_t *gsym = agattrsym(objp, sym->name);
if (!gsym) {
gsym = agattr(agroot(agraphof(objp)), AGTYPE(objp), sym->name, "");
- error(ERROR_WARNING, "Using value of uninitialized attribute \"%s\" of %s \"%s\"", sym->name, kindOf (objp), agnameof(objp));
+ error(ERROR_WARNING, "Using value of uninitialized attribute \"%s\" of %s \"%s\"", sym->name, kindOf (objp), nameOf(pgm, objp));
}
v->string = agxget(objp, gsym);
}
else {
if (!gsym) {
gsym = agattr(agroot(agraphof(objp)), AGTYPE(objp), name, "");
- error(ERROR_WARNING, "Using value of uninitialized attribute \"%s\" of %s \"%s\" in aget()", name, kindOf (objp), agnameof(objp));
+ error(ERROR_WARNING, "Using value of uninitialized attribute \"%s\" of %s \"%s\" in aget()", name, kindOf (objp), nameOf(pgm, objp));
}
v.string = agxget(objp, gsym);
}
-i - create node induced subgraph\n\
-a <args> - string arguments available as ARGV[0..]\n\
-o <ofile> - write output to <ofile>; stdout by default\n\
+ -q - turn off warning messages\n\
-V - print version info\n\
-? - print usage info\n\
If no files are specified, stdin is used\n";
error_info.id = options.cmdName;
#endif
- while ((c = getopt(argc, argv, ":?Vcia:f:o:")) != -1) {
+ while ((c = getopt(argc, argv, ":q?Vcia:f:o:")) != -1) {
switch (c) {
case 'c':
options.compflags |= SRCOUT;
case 'o':
outname = optarg;
break;
+ case 'q':
+ setTraceLevel (ERROR_ERROR);
+ break;
case 'V':
fprintf(stderr, "%s version %s (%s)\n",
Info[0], Info[1], Info[2]);