You can define your own 'help' function in your profile:
filter help($name, [switch]$full = $true) {
Invoke-Expression ('get-help -Name:$name -full:$full ' + ($args |
join-string " "))
}
Note that I've defined Join-String in my profile as this:
function Join-String([string]$separator = " ", [switch]$empty = $false,
[string[]]$strings = $null)
{
begin
{
$result = "";
$list = New-GenericObject System.Collections.Generic.List string $strings;
}
process
{
if($empty -or $_) { [void]$list.add($_); }
}
end
{
[string]::Join($separator, $list.ToArray());
}
}
Now 'help' displays full help by default; if you want to suppress this,
you can call it with -full:$false :
help Get-Command -Full:$false
Nick
$hay wrote:
> when i type the help command i want the result to show
> as if i typed help with the -full parameter.
>
> can i change the defaults?
>
> $hay
> http://scriptolog.blogspot.com
>
>