mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-10 13:23:29 +00:00
Set [Parameters] explicitly
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
RootModule = 'ImportExcel.psm1'
|
||||
|
||||
# Version number of this module.
|
||||
ModuleVersion = '1.90'
|
||||
ModuleVersion = '1.91'
|
||||
|
||||
# ID used to uniquely identify this module
|
||||
GUID = '60dd4136-feff-401a-ba27-a84458c57ede'
|
||||
|
||||
@@ -7,7 +7,7 @@ Add-Type -Path "$($PSScriptRoot)\EPPlus.dll"
|
||||
function Import-Excel {
|
||||
param(
|
||||
[Alias("FullName")]
|
||||
[Parameter(ValueFromPipelineByPropertyName=$true, ValueFromPipeline=$true, Mandatory)]
|
||||
[Parameter(ValueFromPipelineByPropertyName=$true, ValueFromPipeline=$true, Mandatory=$true)]
|
||||
$Path,
|
||||
[Alias("Sheet")]
|
||||
$WorkSheetname=1,
|
||||
@@ -155,9 +155,9 @@ function ConvertFrom-ExcelSheet {
|
||||
|
||||
function Export-MultipleExcelSheets {
|
||||
param(
|
||||
[Parameter(Mandatory)]
|
||||
[Parameter(Mandatory=$true)]
|
||||
$Path,
|
||||
[Parameter(Mandatory)]
|
||||
[Parameter(Mandatory=$true)]
|
||||
[hashtable]$InfoMap,
|
||||
[string]$Password,
|
||||
[Switch]$Show,
|
||||
|
||||
@@ -4,7 +4,7 @@ $p = @{
|
||||
NuGetApiKey = $NuGetApiKey
|
||||
LicenseUri = "https://github.com/dfinke/ImportExcel/blob/master/LICENSE.txt"
|
||||
Tag = "Excel","EPPlus","Export","Import"
|
||||
ReleaseNote = "Fixed v3.0 bug, added -HeaderRow, added Help for Export-Excel"
|
||||
ReleaseNote = "Fixed parameters and explicitly marked as $true"
|
||||
ProjectUri = "https://github.com/dfinke/ImportExcel"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user