Files
swift-mirror/test/SynthesizeInterfaceTool/help-text.swift
John Hui 53a67a2576 [swift-synthesize-interface] Fix help banner and stderr routing
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.
2026-05-20 18:35:49 -07:00

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.