This repository was archived by the owner on Jun 13, 2024. It is now read-only.
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
Update-ModuleManifest -CmdletsToExport, -AliasesToExport, and -FunctionsToExport empty array not allowed #409
Closed
Description
Is there a design reason that you can't provide an empty array to -CmdletsToExport and -AliasesToExport for Update-ModuleManifest?
Best practice for these two values in the manifest is to set an empty array for these if there aren't any to export, but it doesn't seem possible to do via Update-ModuleManifest.
Looking in the code I see both parameters have [ValidateNotNullOrEmpty()] set.
If there isn't a design reason for this, I'll fork and see if I can get this working.
Thanks!