Skip to content

Fix Get-Alias -Name parameter #1952

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 14, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions reference/3.0/Microsoft.PowerShell.Utility/Get-Alias.md
Original file line number Diff line number Diff line change
@@ -14,13 +14,15 @@ Gets the aliases for the current session.
## SYNTAX

### Default (Default)
```
Get-Alias [[-Name] <String[]>] [-Exclude <String[]>] [-Scope <String>] [<CommonParameters>]
```powershell
Get-Alias [[-Name] <String[]>] [-Exclude <String[]>] [-Scope <String>]
[<CommonParameters>]
```

### Definition
```
Get-Alias [-Exclude <String[]>] [-Scope <String>] [-Definition <String[]>] [<CommonParameters>]
```powershell
Get-Alias [-Exclude <String[]>] [-Scope <String>] [-Definition <String[]>]
[<CommonParameters>]
```

## DESCRIPTION
@@ -139,19 +141,19 @@ Accept wildcard characters: True
```

### -Name
Specifies the aliases to retrieve.
Specifies the aliases that this cmdlet gets.
Wildcards are permitted.
By default, Get-Alias retrieves all aliases defined for the current session.
The parameter name ("Name") is optional.
You can also pipe alias names to Get-Alias.
By default, `Get-Alias` retrieves all aliases defined for the current session.
The parameter name **Name** is optional.
You can also pipe alias names to `Get-Alias`.

```yaml
Type: String[]
Parameter Sets: Default
Aliases:
Aliases:

Required: False
Position: 1
Position: 0
Default value: All aliases
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: True
22 changes: 12 additions & 10 deletions reference/4.0/Microsoft.PowerShell.Utility/Get-Alias.md
Original file line number Diff line number Diff line change
@@ -16,13 +16,15 @@ Gets the aliases for the current session.
## SYNTAX

### Default (Default)
```
Get-Alias [[-Name] <String[]>] [-Exclude <String[]>] [-Scope <String>] [<CommonParameters>]
```powershell
Get-Alias [[-Name] <String[]>] [-Exclude <String[]>] [-Scope <String>]
[<CommonParameters>]
```

### Definition
```
Get-Alias [-Exclude <String[]>] [-Scope <String>] [-Definition <String[]>] [<CommonParameters>]
```powershell
Get-Alias [-Exclude <String[]>] [-Scope <String>] [-Definition <String[]>]
[<CommonParameters>]
```

## DESCRIPTION
@@ -146,19 +148,19 @@ Accept wildcard characters: True
```

### -Name
Specifies the aliases to retrieve.
Specifies the aliases that this cmdlet gets.
Wildcards are permitted.
By default, Get-Alias retrieves all aliases defined for the current session.
The parameter name ("Name") is optional.
You can also pipe alias names to Get-Alias.
By default, `Get-Alias` retrieves all aliases defined for the current session.
The parameter name **Name** is optional.
You can also pipe alias names to `Get-Alias`.

```yaml
Type: String[]
Parameter Sets: Default
Aliases:
Aliases:

Required: False
Position: 1
Position: 0
Default value: All aliases
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: True
22 changes: 12 additions & 10 deletions reference/5.0/Microsoft.PowerShell.Utility/Get-Alias.md
Original file line number Diff line number Diff line change
@@ -16,13 +16,15 @@ Gets the aliases for the current session.
## SYNTAX

### Default (Default)
```
Get-Alias [[-Name] <String[]>] [-Exclude <String[]>] [-Scope <String>] [<CommonParameters>]
```powershell
Get-Alias [[-Name] <String[]>] [-Exclude <String[]>] [-Scope <String>]
[<CommonParameters>]
```

### Definition
```
Get-Alias [-Exclude <String[]>] [-Scope <String>] [-Definition <String[]>] [<CommonParameters>]
```powershell
Get-Alias [-Exclude <String[]>] [-Scope <String>] [-Definition <String[]>]
[<CommonParameters>]
```

## DESCRIPTION
@@ -148,20 +150,20 @@ Accept wildcard characters: False
### -Name
Specifies the aliases that this cmdlet gets.
Wildcards are permitted.
By default, **Get-Alias** retrieves all aliases defined for the current session.
The parameter name *Name* is optional.
You can also pipe alias names to **Get-Alias**.
By default, `Get-Alias` retrieves all aliases defined for the current session.
The parameter name **Name** is optional.
You can also pipe alias names to `Get-Alias`.

```yaml
Type: String[]
Parameter Sets: Default
Aliases:
Aliases:

Required: False
Position: 0
Default value: None
Default value: All aliases
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Accept wildcard characters: True
```

### -Scope
22 changes: 12 additions & 10 deletions reference/5.1/Microsoft.PowerShell.Utility/Get-Alias.md
Original file line number Diff line number Diff line change
@@ -16,13 +16,15 @@ Gets the aliases for the current session.
## SYNTAX

### Default (Default)
```
Get-Alias [[-Name] <String[]>] [-Exclude <String[]>] [-Scope <String>] [<CommonParameters>]
```powershell
Get-Alias [[-Name] <String[]>] [-Exclude <String[]>] [-Scope <String>]
[<CommonParameters>]
```

### Definition
```
Get-Alias [-Exclude <String[]>] [-Scope <String>] [-Definition <String[]>] [<CommonParameters>]
```powershell
Get-Alias [-Exclude <String[]>] [-Scope <String>] [-Definition <String[]>]
[<CommonParameters>]
```

## DESCRIPTION
@@ -137,20 +139,20 @@ Accept wildcard characters: False
### -Name
Specifies the aliases that this cmdlet gets.
Wildcards are permitted.
By default, **Get-Alias** retrieves all aliases defined for the current session.
The parameter name *Name* is optional.
You can also pipe alias names to **Get-Alias**.
By default, `Get-Alias` retrieves all aliases defined for the current session.
The parameter name **Name** is optional.
You can also pipe alias names to `Get-Alias`.

```yaml
Type: String[]
Parameter Sets: Default
Aliases:
Aliases:

Required: False
Position: 0
Default value: None
Default value: All aliases
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Accept wildcard characters: True
```

### -Scope
51 changes: 12 additions & 39 deletions reference/6/Microsoft.PowerShell.Utility/Get-Alias.md
Original file line number Diff line number Diff line change
@@ -16,15 +16,15 @@ Gets the aliases for the current session.
## SYNTAX

### Default (Default)
```
Get-Alias [[-Name] <String[]>] [-Exclude <String[]>] [-Scope <String>] [-InformationAction <ActionPreference>]
[-InformationVariable <String>] [<CommonParameters>]
```powershell
Get-Alias [[-Name] <String[]>] [-Exclude <String[]>] [-Scope <String>]
[<CommonParameters>]
```

### Definition
```
```powershell
Get-Alias [-Exclude <String[]>] [-Scope <String>] [-Definition <String[]>]
[-InformationAction <ActionPreference>] [-InformationVariable <String>] [<CommonParameters>]
[<CommonParameters>]
```

## DESCRIPTION
@@ -136,50 +136,23 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -InformationAction
This parameter is called Definition, because it searches for the item name in the Definition property of the alias object.```yaml
Type: ActionPreference
Parameter Sets: (All)
Aliases: infa
Accepted values: SilentlyContinue, Stop, Continue, Inquire, Ignore, Suspend

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -InformationVariable
This parameter is called Definition, because it searches for the item name in the Definition property of the alias object.```yaml
Type: String
Parameter Sets: (All)
Aliases: iv

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Name
Specifies the aliases that this cmdlet gets.
Wildcards are permitted.
By default, **Get-Alias** retrieves all aliases defined for the current session.
The parameter name *Name* is optional.
You can also pipe alias names to **Get-Alias**.
By default, `Get-Alias` retrieves all aliases defined for the current session.
The parameter name **Name** is optional.
You can also pipe alias names to `Get-Alias`.

```yaml
Type: String[]
Parameter Sets: Default
Aliases:
Aliases:

Required: False
Position: 1
Default value: None
Position: 0
Default value: All aliases
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Accept wildcard characters: True
```

### -Scope