Skip to content

vixt / cli / parseVixtArgs

parseVixtArgs() ​

parseVixtArgs(args?): ParsedArgs<{ analyze: { description: string; type: "boolean"; }; clear: { default: false; description: string; type: "boolean"; }; command: { required: true; type: "positional"; }; cors: { description: string; type: "boolean"; }; debug: { alias: string[]; default: false; description: string; type: "boolean"; }; force: { default: false; description: string; type: "boolean"; }; host: { description: string; type: "string"; }; https: { description: string; type: "boolean"; }; legacy: { description: string; type: "boolean"; }; logLevel: { alias: string[]; description: string; options: ("error" | "warn" | "info" | "silent")[]; type: "enum"; }; mode: { alias: string[]; description: string; type: "string"; }; open: { alias: string[]; default: false; description: string; type: "boolean"; }; port: { alias: string[]; description: string; type: "string"; }; root: { default: undefined; description: string; required: false; type: "positional"; }; strictPort: { description: string; type: "boolean"; }; }>

Parameters ​

args? ​

string[] = ...

Returns ​

ParsedArgs<{ analyze: { description: string; type: "boolean"; }; clear: { default: false; description: string; type: "boolean"; }; command: { required: true; type: "positional"; }; cors: { description: string; type: "boolean"; }; debug: { alias: string[]; default: false; description: string; type: "boolean"; }; force: { default: false; description: string; type: "boolean"; }; host: { description: string; type: "string"; }; https: { description: string; type: "boolean"; }; legacy: { description: string; type: "boolean"; }; logLevel: { alias: string[]; description: string; options: ("error" | "warn" | "info" | "silent")[]; type: "enum"; }; mode: { alias: string[]; description: string; type: "string"; }; open: { alias: string[]; default: false; description: string; type: "boolean"; }; port: { alias: string[]; description: string; type: "string"; }; root: { default: undefined; description: string; required: false; type: "positional"; }; strictPort: { description: string; type: "boolean"; }; }>