Skip to content

Commit 017ab42

Browse files
authored
Merge c651f37 into 69d05fe
2 parents 69d05fe + c651f37 commit 017ab42

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

modules/database/src/tools/dbdExpand.pl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@
2020
use EPICS::Readfile;
2121
use EPICS::macLib;
2222

23-
our ($opt_D, @opt_I, @opt_S, $opt_o);
23+
our ($opt_D, $opt_A, @opt_I, @opt_S, $opt_o);
2424

25-
getopts('DI@S@o:') or
26-
die "Usage: dbdExpand [-D] [-I dir] [-S macro=val] [-o out.dbd] in.dbd ...";
25+
getopts('DAI@S@o:') or
26+
die "Usage: dbdExpand [-D] [-A] [-I dir] [-S macro=val] [-o out.dbd] in.dbd ...";
27+
28+
if ($opt_A) {
29+
$DBD::Parser::allowAutoDeclarations = 1;
30+
}
2731

2832
my @path = map { split /[:;]/ } @opt_I; # FIXME: Broken on Win32?
2933
my $macros = EPICS::macLib->new(@opt_S);

0 commit comments

Comments
 (0)