Expand description
The Windows java launcher’s wildcard expansion of application arguments, which ktfmt and ktlint get
before their main runs: an argument with an unquoted * or ? becomes the matching entries of its parent
directory. Ports JDK 21 cmdtoargs.c (next_arg, JLI_CmdToArgs), java_md.c (CreateApplicationArgs) and
LauncherHelper.expandArgs. Other platforms pass arguments through (the shell expands there).
Functions§
- application_
args - The program’s arguments without its name, as the drop-ins’ JVM
mainwould receive them. - expand_
application_ args CreateApplicationArgs: expands an argument only where the launcher’s own split ofcommand_linehas the same text with an unquoted wildcard; when the two splits disagree on the count, everything is passed as is.