<commit_before>/// Getting help docs from Paket.exe
#r "../../bin/Argu.dll"
#r "../../bin/Paket.exe"
open System.IO


#if COMMANDS
Paket.Commands.getAllCommands()
|> Array.iter (fun command ->
    let additionalText = 
        let optFile = sprintf "../content/commands/%s.md" command.Name
        if File.Exists optFile
        then File.ReadAllText optFile
        else ""
    // Work around bug tpetricek/FSharp.Formatting#321 (FSharp.Literate does not escape HTML entities in code blocks with unknown language)
    let cleanText (text : string) = text.Replace("[lang=batchfile]", "[lang=msh]").Replace("```batchfile", "```msh")
    File.WriteAllText(sprintf "../content/paket-%s.md" command.Name, Paket.Commands.markdown command additionalText |> cleanText))<commit_msg>Notify about-v flag in docs - closes #1356<commit_after>/// Getting help docs from Paket.exe
#r "../../bin/Argu.dll"
#r "../../bin/Paket.exe"
open System.IO


#if COMMANDS
Paket.Commands.getAllCommands()
|> Array.iter (fun command ->
    let additionalText = 
        let verboseOption = """

If you add the `-v` flag, then Paket will run in verbos mode and show detailed information.

"""

        let optFile = sprintf "../content/commands/%s.md" command.Name
        if File.Exists optFile
        then verboseOption + File.ReadAllText optFile
        else verboseOption
    // Work around bug tpetricek/FSharp.Formatting#321 (FSharp.Literate does not escape HTML entities in code blocks with unknown language)
    let cleanText (text : string) = text.Replace("[lang=batchfile]", "[lang=msh]").Replace("```batchfile", "```msh")
    File.WriteAllText(sprintf "../content/paket-%s.md" command.Name, Paket.Commands.markdown command additionalText |> cleanText))
{'fraction_non_alphanumeric': 0.14178674351585013, 'fraction_numerical': 0.005763688760806916, 'mean_word_length': 3.4398976982097187, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '319899', 'n_tokens_mistral': 554, 'n_tokens_neox': 523, 'n_words': 150}