"bash -D" command doesn't seem to do anything useful
It's intended to extract all the localizable strings without running the script, but it isn't very useful even for that limited purpose and I believe it has long been deprecated. If you want to see it doing something:

% printf "foo\n\$\"bar\"\n" | bash -D
"bar"