Hi,
When importing digital objects via the command line, the default behavior is to create new child descriptions when multiple lines point to the same description. However, there may be cases where the user has mistakenly duplicated identifiers and new descriptions start to pollute the database. Therefore, not adding the --attach-only option has the same effect as adding it.
In that case, as default behavior, wouldn't it be prudent for the import task to return an error when it finds several lines pointing to a description that already has a digital object?
Create a pull request on Github suggesting these changes.
Thanks,
Willian
Technical Advisor
Public Archive of the State of São Paulo - Brazil