Skip to content

Commit

Permalink
Clean up help text
Browse files Browse the repository at this point in the history
  • Loading branch information
rockbruno committed Dec 16, 2020
1 parent 70fc250 commit 37d9a41
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions Sources/SwiftInfo/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,21 @@ struct Swiftinfo: ParsableCommand {
subcommands: []
)

/// since we are using .unconditionalRemaining --help doesnt work anymore
/// Thus we added a manual flag here
/// Since we are using .unconditionalRemaining, --help doesnt work anymore.
/// Thus, we added a manual flag here.
@Flag(name: .shortAndLong, help: "Show help information.")
var help = false

@Flag(name: .shortAndLong, help: "silent all logs")
@Flag(name: .shortAndLong, help: "Silences all logs.")
var silent = false

@Flag(name: .shortAndLong, help: "logs all details to console")
@Flag(name: .shortAndLong, help: "Logs additional details to the console.")
var verbose = false

@Flag(name: .customLong("pullRequest", withSingleDash: true), help: "is in pull request mode")
var pullRequest = false

@Flag(name: .customLong("print-sourcekit", withSingleDash: true), help: "print source kit")
@Flag(name: .shortAndLong, help: "Logs SourceKit requests to the console.")
var printSourcekit = false

@Argument(parsing: .unconditionalRemaining)
@Argument(parsing: .unconditionalRemaining, help: "Any additional arguments that you would like your Infofile.swift to receive. These arguments can be retrieved in your Infofile through CommandLine's APIs to customize your runs.")
var arguments: [String] = []

mutating func run() throws {
Expand Down Expand Up @@ -85,7 +82,6 @@ struct Swiftinfo: ParsableCommand {
private func setupLogConfig() {
isInVerboseMode = verbose
isInSilentMode = silent
isInPullRequestMode = pullRequest
printSourceKitQueries = printSourcekit
}
}
Expand Down

0 comments on commit 37d9a41

Please sign in to comment.