diff --git a/src/Microsoft.PowerShell.Linux.Host/main.cs b/src/Microsoft.PowerShell.Linux.Host/main.cs index cd5235514..35429c21c 100644 --- a/src/Microsoft.PowerShell.Linux.Host/main.cs +++ b/src/Microsoft.PowerShell.Linux.Host/main.cs @@ -34,8 +34,40 @@ namespace Microsoft.PowerShell.Linux.Host bool hasNext = (i+1) < args.Length; string nextArg = hasNext ? args[i+1] : string.Empty; + // --help was specified + if (arg == "--help" || arg == "-h") + { + Console.WriteLine(@" +usage: powershell[.exe] [ (--help | -h) ] + [ (--file | -f) ] + [