Skip to content

Commit

Permalink
added workspace option
Browse files Browse the repository at this point in the history
  • Loading branch information
samdeane committed Aug 29, 2024
1 parent af47395 commit d12ca19
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ReleaseTools/OptionParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class OptionParser {

// if we've specified the scheme or user, we also need the workspace
if requirements.contains(.workspace) || scheme != nil || user != nil {
if let workspace = defaultWorkspace {
if let workspace = options.workspace ?? defaultWorkspace {
self.workspace = workspace
} else {
throw GeneralError.missingWorkspace
Expand Down
1 change: 1 addition & 0 deletions Sources/ReleaseTools/RootCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import Runner
struct RootCommand: AsyncParsableCommand {
static var configuration: CommandConfiguration {
CommandConfiguration(
commandName: "rt",
abstract: "Assorted tools for iOS/macOS releases.",
subcommands: [
AppcastCommand.self,
Expand Down
2 changes: 2 additions & 0 deletions Sources/ReleaseTools/SharedOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,6 @@ struct UpdatesOption: ParsableArguments {
struct CommonOptions: ParsableArguments {
@Flag(help: "Show the external commands that we're executing, and the output from them.") var showOutput = false
@Flag(help: "Show extra logging.") var verbose = false
@Option(help: "The workspace we're operating on.")
var workspace: String?
}

0 comments on commit d12ca19

Please sign in to comment.