1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-22 21:32:29 +02:00

b2/boom.c (main): run queries also if no variables are set

This commit is contained in:
Werner Almesberger 2012-06-02 23:09:17 -03:00
parent d1593b6681
commit e919b16d78

View File

@ -132,6 +132,7 @@ static void usage(const char *name)
int main(int argc, char **argv)
{
void (*process)(const char *name) = parse_hierarchy;
int query = 0;
int i;
dollar = unique("$");
@ -170,13 +171,15 @@ int main(int argc, char **argv)
process = parse_symbols;
} else if (!strcmp(argv[i], "-q")) {
process = add_var;
query = 1;
} else if (!strcmp(argv[i], "-Q")) {
process = add_var;
query = 1;
select_parts = 1;
} else
usage(*argv);
}
if (vars)
if (query)
do_substitutions();
return 0;
}