Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]
import {
getCommandPathWithRootOptions,
getPrimaryCommand,
hasHelpOrVersion,
isRootHelpInvocation,
} from "./argv.js";
export type CliArgvInvocation = {
argv: string[];
commandPath: string[];
primary: string | null;
hasHelpOrVersion: boolean;
isRootHelpInvocation: boolean;
};
export function resolveCliArgvInvocation(argv: string[]): CliArgvInvocation {
return {
argv,
commandPath: getCommandPathWithRootOptions(argv, 2),
primary: getPrimaryCommand(argv),
hasHelpOrVersion: hasHelpOrVersion(argv),
isRootHelpInvocation: isRootHelpInvocation(argv),
};
}
¤ Dauer der Verarbeitung: 0.17 Sekunden
(vorverarbeitet am 2026-04-27)
¤
*© Formatika GbR, Deutschland