mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-26 07:54:06 +02:00
b2/boom.c (main): run queries also if no variables are set
This commit is contained in:
parent
d1593b6681
commit
e919b16d78
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user