Skip to content

CommandTool: replace lineNumbers with noLineNumbers. #481

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

Merged
merged 3 commits into from
Nov 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/FSharp.Formatting.CommandTool/OptionsLiterate.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace FSharp.Formatting.Options.Literate
namespace FSharp.Formatting.Options.Literate

open CommandLine
open CommandLine.Text
Expand Down Expand Up @@ -71,9 +71,9 @@ type ProcessDirectoryOptions() =
HelpText = "Compiler Options (optional).")>]
member val compilerOptions = [|""|] with get, set

[<Option("lineNumbers", Required = false,
HelpText = "Line number option, defaults to 'true' (optional).")>]
member val lineNumbers = true with get, set
[<Option("noLineNumbers", Required = false,
HelpText = "Don't add line numbers, default is to add line numbers (optional).")>]
member val noLineNumbers = false with get, set

[<Option("references", Required = false,
HelpText = "Turn all indirect links into references, defaults to 'false' (optional).")>]
Expand Down Expand Up @@ -117,7 +117,7 @@ type ProcessDirectoryOptions() =
?formatAgent = None,
?prefix = (evalString x.prefix),
?compilerOptions = (evalString (concat x.compilerOptions)),
?lineNumbers = Some x.lineNumbers,
?lineNumbers = Some (not x.noLineNumbers),
?references = Some x.references,
?fsiEvaluator = (if x.fsieval then Some ( FsiEvaluator() :> _) else None),
?replacements = (evalPairwiseStringArray x.replacements),
Expand Down