Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet fsi --help #16295

Closed
daveyostcom opened this issue Nov 17, 2023 · 1 comment · Fixed by #18006
Closed

dotnet fsi --help #16295

daveyostcom opened this issue Nov 17, 2023 · 1 comment · Fixed by #18006

Comments

@daveyostcom
Copy link

should include the URL to the page explaining everything in full detail

@github-actions github-actions bot added this to the Backlog milestone Nov 17, 2023
@KevinRansom
Copy link
Member

KevinRansom commented Feb 7, 2024

It looks like the required descriptions exist here: https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options

dawedawe added a commit to dawedawe/fsharp that referenced this issue Nov 14, 2024
Copyright (c) Microsoft Corporation. All Rights Reserved.

Usage: dotnet fsi <options> [script.fsx [<arguments>]]

                - INPUT FILES -
--use:<file>                             Use the given file on startup as initial input
--load:<file>                            #load the given file on startup
--reference:<file>                       Reference an assembly (Short form: -r)
--compilertool:<file>                    Reference an assembly or directory containing a design time tool (Short form: -t)
--usesdkrefs[+|-]                        Use reference assemblies for .NET framework references when available (Enabled by default).
-- ...                                   Treat remaining arguments as command line arguments, accessed using fsi.CommandLineArgs

                - CODE GENERATION -
--debug[+|-]                             Emit debug information (Short form: -g)
--debug:{full|pdbonly|portable|embedded} Specify debugging type: full, portable, embedded, pdbonly. ('pdbonly' is the default if no debugging type specified and enables attaching a debugger to a running program,
                                         'portable' is a cross-platform format, 'embedded' is a cross-platform format embedded into the output file).
--optimize[+|-]                          Enable optimizations (Short form: -O)
--tailcalls[+|-]                         Enable or disable tailcalls
--deterministic[+|-]                     Produce a deterministic assembly (including module version GUID and timestamp)
--realsig[+|-]                           Generate assembly with IL visibility that matches the source code visibility
--pathmap:<path=sourcePath;...>          Maps physical paths to source path names output by the compiler
--crossoptimize[+|-]                     Enable or disable cross-module optimizations
--reflectionfree                         Disable implicit generation of constructs using reflection

                - ERRORS AND WARNINGS -
--warnaserror[+|-]                       Report all warnings as errors
--warnaserror[+|-]:<warn;...>            Report specific warnings as errors
--warn:<n>                               Set a warning level (0-5)
--nowarn:<warn;...>                      Disable specific warning messages
--warnon:<warn;...>                      Enable specific warnings that may be off by default
--checknulls[+|-]                        Enable nullness declarations and checks
--consolecolors[+|-]                     Output warning and error messages in color

                - LANGUAGE -
--langversion:?                          Display the allowed values for language version.
--langversion:{version|latest|preview}   Specify language version such as 'latest' or 'preview'.
--checked[+|-]                           Generate overflow checks
--define:<string>                        Define conditional compilation symbols (Short form: -d)
--mlcompatibility                        Ignore ML compatibility warnings
--strict-indentation[+|-]                Override indentation rules implied by the language version

                - MISCELLANEOUS -
--nologo                                 Suppress compiler copyright message
--version                                Display compiler version banner and exit
--help                                   Display this usage message (Short form: -?)

                - ADVANCED -
--codepage:<n>                           Specify the codepage used to read source files
--utf8output                             Output messages in UTF-8 encoding
--preferreduilang:<string>               Specify the preferred output language culture name (e.g. es-ES, ja-JP)
--fullpaths                              Output messages with fully qualified paths
--lib:<dir;...>                          Specify a directory for the include path which is used to resolve source files and assemblies (Short form: -I)
--simpleresolution                       Resolve assembly references using directory-based rules rather than MSBuild resolution
--targetprofile:<string>                 Specify target framework profile of this assembly. Valid values are mscorlib, netcore or netstandard. Default - mscorlib
--clearResultsCache                      Clear the package manager results cache
--exec                                   Exit fsi after loading the files or running the .fsx script given on the command line
--gui[+|-]                               Execute interactions on a Windows Forms event loop (on by default)
--quiet                                  Suppress fsi writing to stdout
--readline[+|-]                          Support TAB completion in console (on by default)
--quotations-debug[+|-]                  Emit debug information in quotations
--shadowcopyreferences[+|-]              Prevents references from being locked by the F# Interactive process
--multiemit[+|-]                         Emit multiple assemblies (on by default) print a link to the documentation website.
fixes dotnet#16295
dawedawe added a commit to dawedawe/fsharp that referenced this issue Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants