mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Added help file for the command line
This commit is contained in:
committed by
Andrew Schwartzmeyer
parent
b0e55b9181
commit
280951089e
@@ -175,6 +175,41 @@ namespace Microsoft.PowerShell.Linux.Host
|
||||
this.currentPowerShell = PowerShell.Create();
|
||||
}
|
||||
|
||||
|
||||
if (initialScript == "--help" || initialScript == "-h")
|
||||
{
|
||||
Console.WriteLine(@"
|
||||
======HELP======
|
||||
PowerShell for Linux
|
||||
Command Line Help Resource
|
||||
================
|
||||
|
||||
TOPIC
|
||||
PowerShell for Linux Command Line Arguments
|
||||
|
||||
SYNOPSIS
|
||||
PowerShell for Linux takes several command line arguments.
|
||||
|
||||
OPTIONS
|
||||
|
||||
[NO ARGUMENTS] Will launch PowerShell for Linux in an interactive shell.
|
||||
|
||||
--command <string> Will execute given string as a PowerShell command.
|
||||
|
||||
-c <string> Will execute given string as a PowerShell command.
|
||||
|
||||
--file <filePath> Given a file path will execute as a PowerShell script.
|
||||
|
||||
-f <filePath> Given a file path will execute as a PowerShell script.
|
||||
|
||||
--help Prints a basic help of command line arguments for PowerShell on Linux
|
||||
|
||||
-h Prints a basic help of command line arguments for PowerShell on Linux.
|
||||
|
||||
");
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
this.currentPowerShell.Runspace = this.myRunSpace;
|
||||
|
||||
Reference in New Issue
Block a user