Skip to content

Commit

Permalink
better usage
Browse files Browse the repository at this point in the history
  • Loading branch information
samdeane committed Nov 6, 2024
1 parent dd50ffd commit 53ed1a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/ActionBuilderTool/ActionBuilderTool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import SemanticVersion
let args = all.filter({ !$0.starts(with: "--") })
guard args.count == 2 else {
let name = URL(fileURLWithPath: args[0]).lastPathComponent
print("\n\nUsage: \(name) <options> <package>")
print("\n\nUsage: \(name) <options> <package-path>")
exit(1)
}

Expand Down Expand Up @@ -78,7 +78,8 @@ import SemanticVersion
encoder.outputFormatting = [.prettyPrinted, .sortedKeys]
let defaultSettings = try encoder.encode(Settings(from: repo))
try defaultSettings.write(to: settingsURL)
} catch {
}
catch {
print("Failed to create config file.\n\(error)")
}
}
Expand Down

0 comments on commit 53ed1a9

Please sign in to comment.