Skip to content

Commit f5afb3a

Browse files
authored
Merge pull request #30935 from CodaFi/maybe-driver
[driver][Shepherd] Document what a "subcommand" is (NFC)
2 parents 2908546 + 9208154 commit f5afb3a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/driver/driver.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ extern int swift_indent_main(ArrayRef<const char *> Args, const char *Argv0,
7474
extern int swift_symbolgraph_extract_main(ArrayRef<const char *> Args, const char *Argv0,
7575
void *MainAddr);
7676

77-
/// Determine if the given invocation should run as a subcommand.
77+
/// Determine if the given invocation should run as a "subcommand".
78+
///
79+
/// Examples of "subcommands" are 'swift build' or 'swift test', which are
80+
/// usually used to invoke the Swift package manager executables 'swift-build'
81+
/// and 'swift-test', respectively.
7882
///
7983
/// \param ExecName The name of the argv[0] we were invoked as.
8084
/// \param SubcommandName On success, the full name of the subcommand to invoke.

0 commit comments

Comments
 (0)