Access Rhino args[] in a plugin (commandline parameters)

Hi!

Rhino can be started with commandline parameters, for example Rhino.exe /nosplash /runscript="-Grasshopper" etc.

Is it possible to access these parameters when a Rhino .NET plugin loads? I only found topics discussing the command field at the top of Rhino window.

public class MyPlugin: Rhino.PlugIns.PlugIn
{
    public MyPlugin()
    {
           **// If Rhino was started with /nosplash, do nothing / do something**
    }

    public static MyPlugin Instance
    {
        get; private set;
    }

    // You can override methods here to change the plug-in behavior on
    // loading and shut down, add options pages to the Rhino _Option command
    // and maintain plug-in wide options in a document.

    public override PlugInLoadTime LoadTime => PlugInLoadTime.AtStartup;
}

Have you tried System.Environment.GetCommandLineArgs?

https://docs.microsoft.com/en-us/dotnet/api/system.environment.getcommandlineargs?view=netframework-4.8

Damn, this never crossed my mind! It works great. Thanks!