Skip to content

Commit 8f0c94c

Browse files
committed
Swap concurrency-unsafe CommandLine.arguments with ProcessInfo.processInfo.arguments
1 parent b694b36 commit 8f0c94c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/sh-parser/main.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
import Foundation
1616
import RawStructuredFieldValues
1717

18-
struct Flags: Sendable {
18+
struct Flags {
1919
var headerType: HeaderType
2020

2121
init() {
2222
// Default to item
2323
self.headerType = .item
24-
let arguments = CommandLine.arguments
24+
let arguments = ProcessInfo.processInfo.arguments
2525

2626
for argument in arguments.dropFirst() {
2727
switch argument {

0 commit comments

Comments
 (0)