Set [Parameters] explicitly

This commit is contained in:
dfinke
2015-12-06 17:07:40 -05:00
parent f974bb3edd
commit dc753b67b2
3 changed files with 5 additions and 5 deletions

View File

@@ -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'

View File

@@ -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,

View File

@@ -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"
}