For now, a simple --add-script $FAMILY $GENUS $SPECIES $EVENT flag that doesn't attempt to intelligently extract data is probably best.
Trying to add fuller support for extracting from files will require more than simple regex as there might be endm, scrp, and rscr in comments.