Skip to content

Remove indent setting from CLI tool #888

Closed
@nojaf

Description

fantomas-tool.exe" --help
USAGE: dotnet fantomas [--help] [--recurse] [--force] [--profile] [--fsi <string>] [--stdin] [--stdout]
                       [--out <string>] [--indent <int>] [--check] [--config <string>] [--version] [<string>]

INPUT:

    <string>              Input path: can be a folder or file with *.fs,*.fsi,*.fsx,*.ml,*.mli extension.

OPTIONS:

    --recurse             Process the input folder recursively.
    --force               Print the source unchanged if it cannot be parsed correctly.
    --profile             Print performance profiling information.
    --fsi <string>        Read F# source from stdin as F# signatures.
    --stdin               Read F# source from standard input.
    --stdout               Write the formatted source code to standard output.
    --out <string>        Give a valid path for files/folders. Files should have .fs, .fsx, .fsi, .ml or .mli
                          extension only.
    --indent <int>        Set number of spaces for indentation (default = 4). The value should be between 1 and 10.
    --check               Don't format files, just check if they have changed. Exits with 0 if it's formatted
                          correctly, with 1 if some files need formatting and 99 if there was an internal error
    --config, -c <string> Use configuration found in file or folder.
    --version, -v         Displays the version of Fantomas
    --help                display this list of options.

The --indent value should be coming from a configuration file.
This setting should be removed.

Metadata

Assignees

No one assigned

    Labels

    clitoolArea command line toolgood first issueLong hanging fruit: easy issue to get your feet wet!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions