dm table: share target argument parsing functions