Skip to content

Standardize host process command line parameter handling #198

Open
@daviwil

Description

@daviwil

Currently we use a rather simplistic means for parsing parameters sent to the PSES host process. We need a more acceptable design for reading parameters passed from the command line. This would also be a good time to change our parameter naming and symbols to be "PowerShell style" like powershell.exe and powershell_ise.exe.

A typical host invocation currently looks like this:

Microsoft.PowerShell.EditorServices.Host.exe /debugAdapter /logPath:SomePath.log /logLevel:Verbose

In the future I would expect it'd look like this:

Microsoft.PowerShell.EditorServices.Host.exe -DebugAdapter -LogPath SomePath.log -LogLevel Verbose

The parsing of such a format should not need to take all of PowerShell's parameter structures into account, just the bare minimum to expose a consistent interface. For parameters like -DebugAdapter which act like a switch, we could simplify parsing by pre-specifying the expected parameters to help the parser determine whether to expect a value for a particular parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions