Skip to content
Open
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
2 changes: 2 additions & 0 deletions src/code/Microsoft.PowerShell.ThreadJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public sealed class StartThreadJobCommand : PSCmdlet
private const string FilePathParameterSet = "FilePath";

[Parameter(ParameterSetName = ScriptBlockParameterSet, Mandatory=true, Position=0)]
[Alias("Command")]
[ValidateNotNullAttribute]
public ScriptBlock ScriptBlock { get; set; }

Expand All @@ -60,6 +61,7 @@ public sealed class StartThreadJobCommand : PSCmdlet

[Parameter(ParameterSetName = ScriptBlockParameterSet)]
[Parameter(ParameterSetName = FilePathParameterSet)]
[Alias("Args")]
public Object[] ArgumentList { get; set; }

[Parameter(ParameterSetName = ScriptBlockParameterSet)]
Expand Down