You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
##### Breaking
4
4
5
-
-None.
5
+
-The `--xcargs` option has been removed, and superseded by passing arguments following the `--` terminator. E.g `periphery scan --xcargs --foo` is now `periphery scan -- --foo`. This feature can also be used to pass arguments to `swift build` for SwiftPM projects.
Copy file name to clipboardExpand all lines: Sources/Frontend/Commands/ScanCommand.swift
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,9 @@ public struct ScanCommand: ParsableCommand {
9
9
abstract:"Scan for unused code"
10
10
)
11
11
12
+
@Argument(help:"Arguments following '--' will be passed to the underlying build tool, which is either 'swift build' or 'xcodebuild' depending on your project")
13
+
varbuildArguments:[String]=[]
14
+
12
15
@Flag(help:"Enable guided setup")
13
16
varsetup:Bool=false
14
17
@@ -36,9 +39,6 @@ public struct ScanCommand: ParsableCommand {
36
39
@Option(help:"Path glob of source files which should be excluded from the results. Note that this option is purely cosmetic, these files will still be indexed. Multiple globs may be delimited by a pipe", transform:split(by:"|"))
37
40
varreportExclude:[String]=[]
38
41
39
-
@Option(help:"Pass additional arguments to xcodebuild for the build phase")
40
-
varxcargs:String?
41
-
42
42
@Option(help:"Path to index store to use. Automatically defaults to the correct store for your project")
43
43
varindexStorePath:String?
44
44
@@ -105,8 +105,8 @@ public struct ScanCommand: ParsableCommand {
0 commit comments