unity-builder/src/core/cli/arguments-parser.ts

15 lines
295 B
TypeScript
Raw Normal View History

2022-08-07 23:51:36 +00:00
import { parseArgv } from './parse-argv.ts';
export class ArgumentsParser {
public parse(cliArguments: string[]) {
const [commandName, ...rest] = cliArguments;
const { subCommands, args } = parseArgv(rest);
2022-08-07 23:51:36 +00:00
return {
commandName,
subCommands,
args,
2022-08-07 23:51:36 +00:00
};
}
}