Table of contents
TOC
Collapse the table of content
Expand the table of content

InteractiveSession.CommandLineArgs Property (F#)

Den Delimarsky|Last Updated: 8/18/2017
|
2 Contributors

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)

Syntax

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

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

Parameters

commandLineArgs Type: stringCore.string Type Abbreviation (F#)[]

The array of command line arguments.

Remarks

For example, the command line fsi.exe test1.fs test2.fs -- hello goodbyewill give arguments test2.fs, hello, goodbye. This value will normally be different to those returned by System.Environment.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.0

See Also

Interactive.InteractiveSession Class (F#)

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

© 2018 Microsoft