resholvePackage: extract util functions
Extract argument-handling utility functions to prepare for adding
resholveScript* functions.
This tracks upstream work, but I broke it up a little more semantically here
in case it aids review. See:
https://github.com/abathur/resholve/commit/6aab74820531673c760d95c24b28f0c29f43fe01
authored by