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' RootModule = 'ImportExcel.psm1'
# Version number of this module. # Version number of this module.
ModuleVersion = '1.90' ModuleVersion = '1.91'
# ID used to uniquely identify this module # ID used to uniquely identify this module
GUID = '60dd4136-feff-401a-ba27-a84458c57ede' GUID = '60dd4136-feff-401a-ba27-a84458c57ede'

View File

@@ -7,7 +7,7 @@ Add-Type -Path "$($PSScriptRoot)\EPPlus.dll"
function Import-Excel { function Import-Excel {
param( param(
[Alias("FullName")] [Alias("FullName")]
[Parameter(ValueFromPipelineByPropertyName=$true, ValueFromPipeline=$true, Mandatory)] [Parameter(ValueFromPipelineByPropertyName=$true, ValueFromPipeline=$true, Mandatory=$true)]
$Path, $Path,
[Alias("Sheet")] [Alias("Sheet")]
$WorkSheetname=1, $WorkSheetname=1,
@@ -155,9 +155,9 @@ function ConvertFrom-ExcelSheet {
function Export-MultipleExcelSheets { function Export-MultipleExcelSheets {
param( param(
[Parameter(Mandatory)] [Parameter(Mandatory=$true)]
$Path, $Path,
[Parameter(Mandatory)] [Parameter(Mandatory=$true)]
[hashtable]$InfoMap, [hashtable]$InfoMap,
[string]$Password, [string]$Password,
[Switch]$Show, [Switch]$Show,

View File

@@ -4,7 +4,7 @@ $p = @{
NuGetApiKey = $NuGetApiKey NuGetApiKey = $NuGetApiKey
LicenseUri = "https://github.com/dfinke/ImportExcel/blob/master/LICENSE.txt" LicenseUri = "https://github.com/dfinke/ImportExcel/blob/master/LICENSE.txt"
Tag = "Excel","EPPlus","Export","Import" 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" ProjectUri = "https://github.com/dfinke/ImportExcel"
} }