mirror of
https://github.com/apple/swift.git
synced 2026-10-24 20:15:56 +02:00
The -help banner showed "USAGE: swift-frontend" because it derived the executable name from the resolved symlink target. Use argv[0] instead so the user-facing tool name is preserved. Also route CompilerInstance setup errors to stderr instead of stdout, for consistency with other swift-synthesize-interface errors.
6 lines
264 B
Swift
6 lines
264 B
Swift
// RUN: not %swift-synthesize-interface -help 2>&1 | %FileCheck %s
|
|
// CHECK: USAGE: swift-synthesize-interface
|
|
|
|
// The help text should reflect the name the user invoked the tool by, not the
|
|
// path of the underlying swift-frontend binary the symlink resolves to.
|