Added help file for the command line

This commit is contained in:
v-alexjo
2016-01-19 12:47:45 -08:00
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;