Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 5 additions & 2 deletions src/pkgchk-cli/Commands.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ type PackageCheckCommandSettings() =

[<CommandArgument(0, "[SOLUTION|PROJECT]")>]
[<Description("The solution or project file to check.")>]
[<DefaultValue("")>]
member val ProjectPath = "" with get, set

[<CommandOption("-t|--transitives")>]
[<Description("Check transitive packages as well as top level packages.")>]
member val IncludeTransitives = false with get, set
[<Description("Toggle transitive package checks. -t false to exclude transtiives, -t true to include them.")>]
[<DefaultValue(true)>]
member val IncludeTransitives = true with get, set

[<CommandOption("-o|--output")>]
[<Description("Output directory for reports.")>]
[<DefaultValue("")>]
member val OutputDirectory = "" with get, set

[<ExcludeFromCodeCoverage>]
Expand Down
2 changes: 1 addition & 1 deletion tests/pkgchk-cli.tests/IntegrationTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module IntegrationTests =
sprintf "dotnet add ./%s/testproj.csproj package %s -v 4.3.1" outDir regexPackage

let runPkgChkArgs outDir =
sprintf "dotnet pkgchk-cli.dll ./%s/testproj.csproj -t" outDir
sprintf "dotnet pkgchk-cli.dll ./%s/testproj.csproj -t true" outDir

let createProc cmd =
let (exec, args) = cmdArgs cmd
Expand Down