Skip to content

Commit

Permalink
exit(0) for print help and errors with args
Browse files Browse the repository at this point in the history
  • Loading branch information
kosyloa committed Oct 24, 2023
1 parent d7c4f2f commit c9e8b2a
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Samples/PerfTestCL/ConnectTool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Where:
return arguments
} catch {
print(fullDescription)
fatalError()
exit(0)
}
}()

Expand Down
2 changes: 1 addition & 1 deletion Samples/PerfTestCL/DumpTool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class DumpTool: ToolsCommand {
return arguments
} catch {
print(fullDescription)
fatalError()
exit(0)
}
}()

Expand Down
2 changes: 1 addition & 1 deletion Samples/PerfTestCL/IpfConnect.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class IpfConnect: ToolsCommand {
return arguments
} catch {
print(fullDescription)
fatalError()
exit(0)
}
}()

Expand Down
2 changes: 1 addition & 1 deletion Samples/PerfTestCL/LatencyTestTool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class LatencyTestTool: ToolsCommand {
return arguments
} catch {
print(fullDescription)
fatalError()
exit(0)
}
}()

Expand Down
2 changes: 1 addition & 1 deletion Samples/PerfTestCL/LiveIpfSample.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class LiveIpfSample: ToolsCommand {
return arguments
} catch {
print(fullDescription)
fatalError()
exit(0)
}
}()

Expand Down
2 changes: 1 addition & 1 deletion Samples/PerfTestCL/PerfTestTool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class PerfTestTool: ToolsCommand {
return arguments
} catch {
print(fullDescription)
fatalError()
exit(0)
}
}()

Expand Down
2 changes: 1 addition & 1 deletion Samples/PerfTestCL/ScheduleSample.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ScheduleSample: ToolsCommand {
return arguments
} catch {
print(fullDescription)
fatalError()
exit(0)
}
}()

Expand Down

0 comments on commit c9e8b2a

Please sign in to comment.