Compartilhar via


InteractiveSession.CommandLineArgs Property (F#)

The command line arguments after ignoring the arguments relevant to the interactive environment and replacing the first argument with the name of the last script file, if any.

Namespace/Module Path: Microsoft.FSharp.Compiler.Interactive

Assembly: FSharp.Compiler.Interactive.Settings (in FSharp.Compiler.Interactive.Settings.dll)

// Signatures:
member this.CommandLineArgs :  string []
member this.CommandLineArgs : string [] with set :  string []

// Usage:
interactiveSession.CommandLineArgs
interactiveSession.CommandLineArgs <- commandLineArgs

Parameters

Remarks

For example, the command line fsi.exe test1.fs test2.fs -- hello goodbye will give arguments test2.fs, hello, goodbye. This value will normally be different to those returned by GetCommandLineArgs.

Platforms

Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2

Version Information

F# Runtime

Supported in: 2.0, 4

Silverlight

Supported in: 3

See Also

Reference

Interactive.InteractiveSession Class (F#)

Microsoft.FSharp.Compiler.Interactive Namespace (F#)