Skip to content

Commit be095e5

Browse files
committed
Add proxy exclusion for asking swiftly for help or dumping help json
1 parent 73a77ea commit be095e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/Swiftly/Proxy.swift

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ public enum Proxy {
3131
// Let the user run the init command with their arguments, if any.
3232
await Swiftly.main()
3333
return
34+
} else if CommandLine.arguments.count == 2 && (CommandLine.arguments[1] == "--help" || CommandLine.arguments[1] == "--experimental-dump-help") {
35+
// Allow the showing of help information
36+
await Swiftly.main()
37+
return
3438
} else {
3539
// We've been invoked outside the "init" subcommand and we're not yet configured.
3640
// This will throw if the configuration couldn't be loaded and give the user an actionable message.

0 commit comments

Comments
 (0)