The documentation for importprivkey refers to the first named argument with the wrong string:
The correct string for the name is mentioned in src/wallet/rpcwallet.cpp. This should be easy to fix, thus tagging with "hacktoberfest".
The fix could also update the calls to importprivkey in test/functional/importprunedfunds.py to use named args.