mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Merge pull request 242 from dev/console-args into develop
made powershell work with additional argument logic
This commit is contained in:
@@ -121,6 +121,11 @@ namespace Microsoft.Samples.PowerShell.Host
|
||||
++i;
|
||||
}
|
||||
}
|
||||
|
||||
if ( String.IsNullOrEmpty(initialScript) && args.Length > 0 )
|
||||
{
|
||||
initialScript = string.Join(" ", args);
|
||||
}
|
||||
}
|
||||
|
||||
// Create the listener and run it
|
||||
|
||||
Reference in New Issue
Block a user